aboutsummaryrefslogtreecommitdiffstats
path: root/testing/makepasswd/APKBUILD
blob: 211bbd9e3439e4e94a17d3cea2b4b96a1a9c55d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=makepasswd
pkgver=0.5.2
pkgrel=0
pkgdesc="Generates (pseudo-)random passwords of a desired length"
url="http://people.defora.org/~khorben/projects/makepasswd/"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev libxslt docbook-xsl"
install=""
subpackages="$pkgname-doc"
source="http://ftp.defora.org/pub/projects/makepasswd/$pkgname-$pkgver.tar.gz"

_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
}

build() {
	cd "$_builddir"
	make || return 1
	pushd doc
	make || return 1
}

package() {
	cd "$_builddir"
	install -D -p -m 755 src/makepasswd "$pkgdir"/usr/bin/makepasswd
	install -D -p -m 644 doc/makepasswd.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1  || return 1
}

md5sums="cf9cc172c57bf8443514e69ad72ec412  makepasswd-0.5.2.tar.gz"
sha256sums="8a08e40972ab6db3c57e7e5040d4ca9f7be792d3405afd54de136ebbb7039891  makepasswd-0.5.2.tar.gz"
sha512sums="24bf03bb9170bb96e2262b889e6ba789618a81e132895d0e35615d70d35b6ac36d8001d49f3bc688e062d922049e07ea40528ee4b315b2f3241df6bec5d33633  makepasswd-0.5.2.tar.gz"