blob: 4dae9c8740246a75c5eef5a4e26941e6cee0f249 (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=2.5.1
_ver=${pkgver%_git*}
pkgrel=3
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://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
0001-cryptsetup-add-missing-libdl-dependency.patch
0001-cyptsetup-add-another-missing-dep-libpthread.patch
0001-lvm-libdevmapper-needs-pthread.patch
eglibc.patch
"
arch="noarch"
license="GPL-2"
_builddir="$srcdir"/$pkgname-$_ver
prepare() {
cd "$_builddir"
# 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)
msg $i; patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$_builddir"
make VERSION=$pkgver-r$pkgrel || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
md5sums="c0c44c16105eb939392b2f042c2f866c mkinitfs-2.5.1.tar.xz
671e8363c2f586f816868df4d999ef72 0001-cryptsetup-add-missing-libdl-dependency.patch
d5380f593018132425ee3e9d91c9948d 0001-cyptsetup-add-another-missing-dep-libpthread.patch
d948cc2edbe7b36709fb415069cf24de 0001-lvm-libdevmapper-needs-pthread.patch
067649665a767ff1a08578e1f4e61524 eglibc.patch"
sha256sums="40a320988d4e48162654c96ef5a3e3170456a0711d03d0622323e0fe71f43e61 mkinitfs-2.5.1.tar.xz
61f7544ef812579a64207625cb2133f3709031e79bf3d7d26d5f70e98f18b033 0001-cryptsetup-add-missing-libdl-dependency.patch
583e892a82c39734d632f367e2539734270726c6f44ec00f1fc30575d6f2b014 0001-cyptsetup-add-another-missing-dep-libpthread.patch
66dec264a9c4e5d2a1b79f6830a40540588ca10dc7a8b667a4d14eb1990b6d31 0001-lvm-libdevmapper-needs-pthread.patch
2db513d1a058be0f5794dc74d00418807253d8ac850c9713ea0eeb0be5f3f65a eglibc.patch"
sha512sums="a544be536be5ffbb9c49ec4dab036adcf98ea086870498f5c78b7ff27adbe02d99f8b852c64acdef7a6c0b464df2016a8b6ad071350751fc96706bdd264657a6 mkinitfs-2.5.1.tar.xz
33a5b97eb1f408d6896543464ee2c191e08fe9c801c9cff5ca38ad484d1e32ba8376a14606c20cb296687265c3b2c11c41c77eecc4688d3fa9c2366ad7b53c3f 0001-cryptsetup-add-missing-libdl-dependency.patch
81a463d5634935bb00bc3ffcd39225e3040b8f856fb7841130972728fc002340ec71b3a8b3942de5630af11d5e19259258e459fbf7e0f88228f2fbcc417f67b8 0001-cyptsetup-add-another-missing-dep-libpthread.patch
4e21aac08584d0ecef9f00db1d93a1cf75203887ff32613717a752b6f3d13a91c9ac2f770b1ade017c1b68de09a962bc1ec4605b2fb1582665ace680ca6cbd87 0001-lvm-libdevmapper-needs-pthread.patch
3498d9930889cd776a34863733d467b50b83679ea7f91d79963c81e4f1dc138f887ef1f2a696da6d836d1f6f862dcfd2c2fb9a55b0e3b2926e9f3fc648bc5a15 eglibc.patch"
|