APKBUILD 784 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apg
pkgver=2.2.3
4
pkgrel=5
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="Automated Password Generator."
6
url="https://linux.die.net/man/1/apg" # Original homepage is dead
7
arch="all"
8
license="BSD-3-Clause"
9 10 11
# no check provided by upstream
options="!check"
source="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
12

13
build() {
14
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
15
	sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
16
	make
17 18 19
}

package() {
20
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25
	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
	done
}
26

27
sha512sums="d2479dc2cb5d571ddea23d98e9d4ddbdfff874013ff27c00073a3231c4c1d0ee9b75d3983331f3513755b57527766cc5a35e6829cdca15d2e9293dfbc4c2788a  apg_2.2.3.orig.tar.gz"