aboutsummaryrefslogtreecommitdiffstats
path: root/testing/remake/APKBUILD
blob: cfae0781583131f803c0457c45a70294e536f503 (plain) (blame)
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
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=remake
pkgver=1.5
pkgrel=0
pkgdesc="a utility for managing collections of software build artifacts"
url="https://github.com/rocky/remake"
arch="all"
license="GPL-3.0-or-later"
makedepends="readline-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-make:_make"
source="https://sourceforge.net/projects/bashdb/files/remake/4.3%2Bdbg-$pkgver/remake-4.3%2Bdbg-$pkgver.tar.gz"
builddir="$srcdir/remake-4.3+dbg-$pkgver"

build() {
	CFLAGS="$CFLAGS -fcommon" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	[ "$CBUILD" != "$CHOST" ] || (ulimit -n 64 && PERL5LIB=. make check)
}

package() {
	make DESTDIR="$pkgdir" install
}

_make() {
	pkgdesc="$pkgdesc (make symlink)"
	provides="make=4.3"

	mkdir -p "$subpkgdir"/usr/bin
	ln -sf remake "$subpkgdir"/usr/bin/make
}

sha512sums="90aa9674ed5d88b72fda5a99a103d0b1a643d10b18c1de1186478b026f6b4da73628bff75a180df880157b5cbfff1bfd782f4ee81880e0635d79113fcc0f7497  remake-4.3%2Bdbg-1.5.tar.gz"