diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-14 07:18:15 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-14 07:18:28 +0000 |
commit | 3f977ea39412f9649900f1dfb11e34883ce49c79 (patch) | |
tree | 38605090e429efa6cf1a5dfbfacbf84b588dbe08 /main/mkinitfs/APKBUILD | |
parent | 1a6399738d6b458a0c95d450d2e306dc9725aca9 (diff) | |
download | aports-3f977ea39412f9649900f1dfb11e34883ce49c79.tar.bz2 aports-3f977ea39412f9649900f1dfb11e34883ce49c79.tar.xz |
main/mkinitfs: support cross building
Diffstat (limited to 'main/mkinitfs/APKBUILD')
-rw-r--r-- | main/mkinitfs/APKBUILD | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD index 1c538b0f33..c3028d3c92 100644 --- a/main/mkinitfs/APKBUILD +++ b/main/mkinitfs/APKBUILD @@ -5,8 +5,10 @@ _ver=${pkgver%_git*} pkgrel=1 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" +makedepends_build="" +makedepends_host="kmod-dev util-linux-dev cryptsetup-dev linux-headers" +makedepends="$makedepends_build $makedepends_host" +depends="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 @@ -15,27 +17,18 @@ 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 -} +builddir="$srcdir"/$pkgname-$_ver build() { - cd "$_builddir" + cd "$builddir" make VERSION=$pkgver-r$pkgrel || return 1 } package() { - cd "$_builddir" + cd "$builddir" make install DESTDIR="$pkgdir" || return 1 } + md5sums="de3f95912a542dfabbf0573620549a29 mkinitfs-3.0.5.tar.xz a4227598291fa7338ad1128bfef3720c 0001-init-add-support-for-ttyMFD-and-ttyUSB-serial-consol.patch" sha256sums="3f13619f161c506796b91f2db17644eba25c2ffc923aa0c8fff0213d1f660aa4 mkinitfs-3.0.5.tar.xz |