blob: dca3535e1ffc8b38c31c929ad02caf2b52c52400 (
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
51
52
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=2.3.4
pkgrel=4
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="busybox apk-tools>=2.0"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
0001-init-fix-progressbar-when-not-quiet.patch
mount-move.patch
delay-umount-apkovl.patch
eglibc.patch
"
arch="noarch"
license="GPL-2"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
# If we are using eglibc/glibc we need to include eglibc libs
# instead of uclibc libs.
for i in $source; do
case $i in
eglibc.patch)
case "$CHOST" in
*-gnu)
patch -p1 -i "$srcdir"/eglibc.patch || return 1
;;
esac
;;
*.patch)
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$srcdir"/$pkgname-$pkgver
make VERSION=$pkgver-r$pkgrel || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make install DESTDIR="$pkgdir" || return 1
}
md5sums="abec6dced89e137dc60542c1e5f938ac mkinitfs-2.3.4.tar.bz2
4ea4389d5dff0a69d6792420574d2f1f 0001-init-fix-progressbar-when-not-quiet.patch
049392dd315240d2c7d892ef67072e03 mount-move.patch
6d8b0a6f3b7a90152d84eda373743d84 delay-umount-apkovl.patch
e59c2f7de496fe430b07e32fd812ebe0 eglibc.patch"
|