summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12020-02-28 04:22:35 +0800
committerChocobo12020-02-28 04:22:35 +0800
commit485cb1d2e58f593bfd0b06ad775ec34130e0acd4 (patch)
tree3f2c3d8ce02a436513065e644d87ae4c0eef4a9b /PKGBUILD
downloadaur-socat-git.tar.gz
newpkg: socat-git 1.7.3.3.r9.g82cf4ae-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ea4846f54c5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=socat-git
+pkgver=1.7.3.3.r9.g82cf4ae
+pkgrel=1
+pkgdesc="Multipurpose relay"
+arch=('i686' 'x86_64')
+url="http://www.dest-unreach.org/socat/"
+license=('GPL2')
+depends=('glibc' 'openssl' 'readline')
+makedepends=('git' 'yodl')
+provides=('socat')
+conflicts=('socat')
+source=("git+https://repo.or.cz/socat.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "socat"
+
+ git describe --long --tags | sed 's/^tag-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "socat"
+
+ autoconf -f
+ ./configure \
+ --prefix="/usr"
+ make
+}
+
+check() {
+ cd "socat"
+
+ #make test
+}
+
+package() {
+ cd "socat"
+
+ make DESTDIR="$pkgdir" install
+}