summaryrefslogtreecommitdiffstats
path: root/main/fortify-headers/APKBUILD
blob: 209278263886399103b5c7a9f258f4bc2333abce (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=fortify-headers
pkgver=0.4
pkgrel=1
pkgdesc="standalone fortify source implementation"
url="http://git.2f30.org/fortify-headers/"
arch="noarch"
license="BSD-0"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://dl.2f30.org/releases/$pkgname-$pkgver.tar.gz
	0001-fix-realpath-when-stdlib.h-is-included-before-limits.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() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="99b34bbd925cbfe383252fe107cafece  fortify-headers-0.4.tar.gz
47e6831fc0fa84075f5750b47b13d888  0001-fix-realpath-when-stdlib.h-is-included-before-limits.patch"
sha256sums="fedfbd951bf4d4bd30d32bef20710d6124c004037df52059a274c090c1f11a0a  fortify-headers-0.4.tar.gz
1216858e96afa30b093ec420d0b6d8943036d8816f54a59e3fa6ef5b5b0ee32e  0001-fix-realpath-when-stdlib.h-is-included-before-limits.patch"
sha512sums="669bf35df5278d4557caa2c8f28e33fe3e4a03c4267eed2cc8638dcb8e705d8797e487fbb524d9ff919e2752f1dc817cef9d41f14ceb46d520661e3d2301c5f2  fortify-headers-0.4.tar.gz
5364518842709e2c25baaf9a8b7651db422f2d37c64fac690f671daa157214192933ac1821a29d31d8ddfd49dd8e2625e3dfbe6fdba3b2b899c533f0f73e4699  0001-fix-realpath-when-stdlib.h-is-included-before-limits.patch"