summaryrefslogtreecommitdiffstats
path: root/main/makekit/APKBUILD
blob: d5dc702681067fd54a366e09f296185af308af78 (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="noarch"
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-$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="46b64e4a029b9b7ae09b24230cc5dc81  makekit-0.1.tar.gz"
sha256sums="769af9ac5ff591cfd07e9eb3d64a684ac59bce3952d513fd61baa3ea6c84431b  makekit-0.1.tar.gz"
sha512sums="5a7ebec00f3edd53a0ba1ae0f8c225cbe7781b84f2be56853bd2f984fddc78b5baad316f4808ccf0a859d1ded11475474a398a9ec50c67f2a2a80cd9bde902c3  makekit-0.1.tar.gz"