aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-07-21 18:07:59 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-07-21 23:37:31 +0200
commitcc8e9750b2911b617671598e60ec9125585ae4cb (patch)
treee08901f16165c8b132c909cb05898ff2fa05d356
parent87819d5073ce46963c91ddc684b596d0fee40e43 (diff)
downloadaports-cc8e9750b2911b617671598e60ec9125585ae4cb.tar.gz
aports-cc8e9750b2911b617671598e60ec9125585ae4cb.tar.bz2
aports-cc8e9750b2911b617671598e60ec9125585ae4cb.tar.xz
community/secpwgen: modernize APKBUILD
-rw-r--r--community/secpwgen/APKBUILD39
1 files changed, 13 insertions, 26 deletions
diff --git a/community/secpwgen/APKBUILD b/community/secpwgen/APKBUILD
index 91a44ab31c..74330b34ed 100644
--- a/community/secpwgen/APKBUILD
+++ b/community/secpwgen/APKBUILD
@@ -7,40 +7,31 @@ pkgdesc="secure password generator"
url="http://zvrba.net/"
arch="all"
license="MIT"
-depends=""
depends_dev="libressl-dev"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/itoffshore/$pkgname/archive/v$pkgver.tar.gz
make-openssl.patch
"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
- mv Makefile.proto Makefile || return 1
- make || return 1
+ cd "$builddir"
+ mv Makefile.proto Makefile
+ make
}
package() {
- cd "$_builddir"
- mkdir -p "$pkgdir"/usr/bin
- mkdir -p "$pkgdir"/usr/share/man/man1
- install -m 755 secpwgen "$pkgdir"/usr/bin || return 1
- install -m 644 secpwgen.1 "$pkgdir"/usr/share/man/man1 || return 1
+ cd "$builddir"
+
+ mkdir -p "$pkgdir"/usr/bin \
+ $pkgdir"/usr/share/man/man1
+ install -m 755 secpwgen "$pkgdir"/usr/bin
+ install -m 644 secpwgen.1 "$pkgdir"/usr/share/man/man1
+
# post-install message
- mkdir -p "$pkgdir/usr/share/doc/$pkgname"
- cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+ cat > "$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
To increase entropy in your system:
-----------------------------------
apk add haveged
@@ -49,9 +40,5 @@ rc-service haveged start
EOF
}
-md5sums="c53da1931bb480e77691c7602fc28408 secpwgen-1.3.tar.gz
-0b54c4a66ae423d3f7f28b8f091f071a make-openssl.patch"
-sha256sums="ae2e33db5c94a18d55ad50563b026f3aecd9d4f6ebb19b2dcc9a68625fd1f509 secpwgen-1.3.tar.gz
-8b8a3b308eb75de5c54e8da0677280ef326f256c18c5e5ac816723d969e3f95a make-openssl.patch"
sha512sums="a18b5405ae5f6a62c25dd61654ea897b2f099fa459530bc6cfdbe79d96bfa6b4943e4ba2456ad5355d37cababe585299638afe56ff1a9fc649b6df0b7aa1e269 secpwgen-1.3.tar.gz
d9e4f84ab0d557ecc4c57152ea78fd2c610f36d2ea4ae87f690944ac454497cb450e693ab4726209b58ade32e3c1f6f2bb74fec47b2a766e68eed56bfcfbc8d0 make-openssl.patch"