aboutsummaryrefslogtreecommitdiffstats
path: root/main/makekit/APKBUILD
blob: 9b843b142f048886af51fd93dd94cab26a2dd125 (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
49
50
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=makekit
pkgver=0.1
pkgrel=0
pkgdesc="modular build system for POSIX environments"
url="http://mkbuild.sourceforge.net/"
arch="x86 x86_64"
license="BSD"
depends=
depends_dev=
makedepends="$depends_dev"
install=""
subpackages=
source="makekit-$pkgver.tar.gz::https://github.com/bkoropoff/makekit/archive/release-$pkgver.tar.gz"

_builddir="$srcdir"/makekit-release-$pkgver/build
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() {
	mkdir -p "$_builddir"
	cd "$_builddir"
	../configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e74d0a97143ddf854ee0a74c69325f07  makekit-0.1.tar.gz"
sha256sums="bf433cedb1d26f602aa81ea5407a56c4c2dd1367d8124ca8c08c7097da0313cd  makekit-0.1.tar.gz"
sha512sums="dfb16d7349c208f26f3c0ed380538479ae65e75b67cbf0c8faa13d0c8824f6efe8401ab80f87c0398c3e08acce0f08d2e547e2c90b3fe3874ee830fbab6f1ed8  makekit-0.1.tar.gz"