blob: 6e7b73ff8f8e204afe1b97cb34863b5f6650bf82 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=3.0.3
_ver=${pkgver%_git*}
pkgrel=0
pkgdesc="Tool to generate initramfs images for Alpine"
url="http://git.alpinelinux.org/cgit/mkinitfs"
makedepends="kmod-dev util-linux-dev cryptsetup-dev linux-headers"
depends="acct busybox apk-tools>=2.0 lddtree>=1.25"
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
"
arch="all"
license="GPL2"
_builddir="$srcdir"/$pkgname-$_ver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.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="3bd3f1ecf741edd1383b3ea2a1a1e535 mkinitfs-3.0.3.tar.xz"
sha256sums="42f6681e45e6655b25b8e3fdcb6ba75d38dc65d968cd2b2d33e57542aca23c6e mkinitfs-3.0.3.tar.xz"
sha512sums="3ab240c6fe5c44310da91933865fca0c6fdb1a0a54a4af1d33e9a5e1f682b7b2d5b55cd967899edbd5f99e5d76602df0410fc6d3a1dceb154f9bcb6e1b05b462 mkinitfs-3.0.3.tar.xz"
|