APKBUILD 761 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
3
pkgver=2.0_rc6
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
7
depends="busybox apk-tools>=2.0_rc7"
8
triggers="$pkgname.trigger:/usr/share/kernel/*"
9
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
10
	0001-init-never-overwrite-existing-files.patch
11
	"
Natanael Copa's avatar
Natanael Copa committed
12
license="GPL-2"
Natanael Copa's avatar
Natanael Copa committed
13 14 15

build() {
	cd "$srcdir"/$pkgname-$pkgver
16

17
	patch -p1 -i ../0001-init-never-overwrite-existing-files.patch || return 1
Natanael Copa's avatar
Natanael Copa committed
18
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
19 20
	make install DESTDIR="$pkgdir" || return 1
}
21 22
md5sums="6b8945b2e3be747caf8cfb29230f180e  mkinitfs-2.0_rc6.tar.bz2
921aadd7e302d5e565e539e611be946e  0001-init-never-overwrite-existing-files.patch"