diff options
author | alive4ever | 2016-06-29 12:53:26 +0700 |
---|---|---|
committer | alive4ever | 2016-06-29 12:58:01 +0700 |
commit | fcf015c38125f87d3b548e5717c07203cbeb0fc6 (patch) | |
tree | afe2c0f08cd2453d9e8daa23ed7389a1023d4f0b | |
parent | 9fc353a7725ac84b762aae53b913ca9dfbc63e4a (diff) | |
download | aur-fcf015c38125f87d3b548e5717c07203cbeb0fc6.tar.gz |
More efficient PKGBUILD
The previous PKGBUILD calls 'mkdir' before install. Now, it's
simplified by just using 'install -D'.
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 26 insertions, 7 deletions
@@ -20,3 +20,25 @@ pkgbase = libressl-netcat pkgname = libressl-netcat +pkgbase = libressl-netcat + pkgdesc = Low level UDP/TCP connection tool with support for TLS protocol + pkgver = 2.4.1 + pkgrel = 2 + url = http://www.libressl.org + arch = x86_64 + arch = i686 + license = bsd + license = custom:Openssl + depends = glibc + depends = ca-certificates + provides = netcat + conflicts = openbsd-netcat + conflicts = gnu-netcat + source = http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.1.tar.gz + source = http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.1.tar.gz.asc + validpgpkeys = A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5 + sha256sums = 121922b13169cd47a85e3e77f0bc129f8d04247193b42491cb1fab9074e80477 + sha256sums = SKIP + +pkgname = libressl-netcat + @@ -1,7 +1,7 @@ # Maintainer=alive4ever pkgname=libressl-netcat pkgver=2.4.1 -pkgrel=1 +pkgrel=2 arch=('x86_64' 'i686') pkgdesc="Low level UDP/TCP connection tool with support for TLS protocol" url=http://www.libressl.org @@ -29,12 +29,9 @@ make -k check package() { cd $srcdir/libressl-${pkgver} -mkdir -p $pkgdir/usr/bin -install -m 755 ./apps/nc/nc $pkgdir/usr/bin/nc +install -Dm 755 ./apps/nc/nc $pkgdir/usr/bin/nc ln -s nc $pkgdir/usr/bin/netcat -mkdir -p $pkgdir/usr/share/man/man1 -install -m 644 ./apps/nc/nc.1 $pkgdir/usr/share/man/man1/nc.1 -mkdir -p $pkgdir/usr/share/licenses/$pkgname -install -m 644 ./COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE +install -Dm 644 ./apps/nc/nc.1 $pkgdir/usr/share/man/man1/nc.1 +install -Dm 644 ./COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE } |