aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-05-07 14:43:52 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-05-07 14:43:56 +0000
commit5023860f6e6a1c64f867956bc1c04c33069da113 (patch)
tree31490124d200af5a14f6895b70f50dbe318e3df0
parent5b79c3dd5cd53e8c54803a0a79553c23ba596fd8 (diff)
downloadaports-5023860f6e6a1c64f867956bc1c04c33069da113.tar.bz2
aports-5023860f6e6a1c64f867956bc1c04c33069da113.tar.xz
main/apg: updated src url, fixed build, updated APKBUILD
-rw-r--r--main/apg/APKBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/main/apg/APKBUILD b/main/apg/APKBUILD
index a3a867227d..494afd5bf8 100644
--- a/main/apg/APKBUILD
+++ b/main/apg/APKBUILD
@@ -1,25 +1,29 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apg
pkgver=2.2.3
-pkgrel=3
+pkgrel=4
pkgdesc="Automated Password Generator."
url="http://www.adel.nursat.kz/apg/index.shtml"
arch="all"
license="BSD"
-depends=""
-makedepends=""
+# no check provided by upstream
+options="!check"
subpackages="$pkgname-doc"
-source="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$pkgname-$pkgver.tar.gz"
+source="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ default_prepare
+}
-_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
- make || return 1
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
for i in apg apgbfm; do
install -D -m755 $i "$pkgdir"/usr/bin/$i
install -D -m644 doc/man/$i.1 "$pkgdir"/usr/man/man1/$i.1
@@ -27,4 +31,4 @@ package() {
install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-sha512sums="d2479dc2cb5d571ddea23d98e9d4ddbdfff874013ff27c00073a3231c4c1d0ee9b75d3983331f3513755b57527766cc5a35e6829cdca15d2e9293dfbc4c2788a apg-2.2.3.tar.gz"
+sha512sums="d2479dc2cb5d571ddea23d98e9d4ddbdfff874013ff27c00073a3231c4c1d0ee9b75d3983331f3513755b57527766cc5a35e6829cdca15d2e9293dfbc4c2788a apg_2.2.3.orig.tar.gz"