APKBUILD 978 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
3
pkgver=3.1.0
4
_ver=${pkgver%_git*}
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
pkgdesc="Tool to generate initramfs images for Alpine"
7
url="http://git.alpinelinux.org/cgit/mkinitfs"
8 9 10 11
makedepends_build=""
makedepends_host="kmod-dev util-linux-dev cryptsetup-dev linux-headers"
makedepends="$makedepends_build $makedepends_host"
depends="busybox apk-tools>=2.0 lddtree>=1.25"
12
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
13
triggers="$pkgname.trigger=/usr/share/kernel/*"
14
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
15
	"
16
arch="all"
17
license="GPL2"
Natanael Copa's avatar
Natanael Copa committed
18

19
builddir="$srcdir"/$pkgname-$_ver
Natanael Copa's avatar
Natanael Copa committed
20
build() {
21
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
22
	make VERSION=$pkgver-r$pkgrel || return 1
23 24 25
}

package() {
26
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
27 28
	make install DESTDIR="$pkgdir" || return 1
}
29

30
sha512sums="ec80702c6b41cb7898679377bef949cc1079b006c2dcc760c801f60a411eb1d3b3fd34ae2088b0bd3779202953466bce6efd62253d93dda32a8bca9bcd8942fc  mkinitfs-3.1.0.tar.xz"