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

17
_builddir="$srcdir"/$pkgname-$_ver
18
prepare() {
19
	cd "$_builddir"
20 21 22
	for i in $source; do
		case $i in
		*.patch)
23
			msg $i; patch -p1 -i "$srcdir"/$i || return 1
24 25 26
			;;
		esac
	done
27 28
}

Natanael Copa's avatar
Natanael Copa committed
29
build() {
30
	cd "$_builddir"
31
	make VERSION=$pkgver-r$pkgrel || return 1
32 33 34
}

package() {
35
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
36 37
	make install DESTDIR="$pkgdir" || return 1
}
38 39 40
md5sums="01208d98615d03a0afb74eec9d9ece4e  mkinitfs-3.0.2.tar.xz"
sha256sums="e87456ab79230a4666281f37b2e7e0678ed70f7dd19fd2916e7b4fe4f426b0c2  mkinitfs-3.0.2.tar.xz"
sha512sums="8a6cb0e768b09c1cde0b5ec18302df222da4cadb3860920c69553b81e84900b0ebcad1830c993aef79d71889dfe00bc0292563336eebaff8b3f9a3ee85a6770f  mkinitfs-3.0.2.tar.xz"