aboutsummaryrefslogtreecommitdiffstats
path: root/testing/outils/APKBUILD
blob: 77a7108285b6b759ecb7198e8a95781736fe60a3 (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
45
46
47
48
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=outils
pkgver=0.2
pkgrel=2
pkgdesc="Port of some non-standard OpenBSD tools to Linux"
url="https://github.com/chneukirchen/outils"
arch="all"
license="BSD ISC"
depends=""
depends_dev=""
makedepends="openssl-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/chneukirchen/$pkgname/archive/v$pkgver.tar.gz
	include-sys-types.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
}

build() {
	make CC="$CC" CFLAGS="$CFLAGS" \
		-C "$_builddir" || return 1
}

package() {
	make DESTDIR="$pkgdir" install \
		-C "$_builddir" || return 1

	# Don't conflict with main/coreutils
	rm -f "$pkgdir"/usr/bin/cksum || return 1
	rm -f "$pkgdir"/usr/share/man/man1/cksum.1 || return 1
}

md5sums="9b4be449ff568baedc3d3aac4dfaf6e0  outils-0.2.tar.gz
ff9943b103c7597b371435cc7323f775  include-sys-types.patch"
sha256sums="e37626abd95ada936250938f4142161f70dae8247257db946708d6a87e785ddc  outils-0.2.tar.gz
ce2810972f5c30389f87f5c4f68b6a31cd45369e4deeb2b2e90df46b2b367320  include-sys-types.patch"
sha512sums="8a54a0c260c9a5a18f9ec0c0265d7b4195f64bb41845628fd4b4e1e066920ac7abc49372c817e9311c2ecc787c603d5d5d0905432c26f184b76a30bd82b0801e  outils-0.2.tar.gz
1d6e0984038ffba618d8f08a002c5589da76e2872b9e434c4c470180f2d67f977ad803be734d30ea7eee57286d356da86ef959f90e75255697d42c957ecab9c7  include-sys-types.patch"