APKBUILD 860 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=3
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Automated Password Generator."
url="http://www.adel.nursat.kz/apg/index.shtml"
7
arch="all"
8 9
license="BSD"
depends=""
Natanael Copa's avatar
Natanael Copa committed
10
makedepends=""
11
subpackages="$pkgname-doc"
12
source="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$pkgname-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
13

14 15 16
_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
17 18
	sed -i 's:^#\(CS_LIBS = -lnsl\)$:\1:' Makefile
	make || return 1
19 20 21 22
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
23 24 25 26 27 28
	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
	install -D -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
29

30
sha512sums="d2479dc2cb5d571ddea23d98e9d4ddbdfff874013ff27c00073a3231c4c1d0ee9b75d3983331f3513755b57527766cc5a35e6829cdca15d2e9293dfbc4c2788a  apg-2.2.3.tar.gz"