From 8c23c325fcd82598c3a470d7d44a293911e0fae8 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 22 Sep 2017 23:24:42 +0200 Subject: main/mkinitfs: modernize abuild --- main/mkinitfs/APKBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD index 3b36fb1a0c..db1ea1cc57 100644 --- a/main/mkinitfs/APKBUILD +++ b/main/mkinitfs/APKBUILD @@ -5,6 +5,8 @@ _ver=${pkgver%_git*} pkgrel=3 pkgdesc="Tool to generate initramfs images for Alpine" url="http://git.alpinelinux.org/cgit/mkinitfs" +arch="all" +license="GPL2" makedepends_build="" makedepends_host="kmod-dev util-linux-dev cryptsetup-dev linux-headers" makedepends="$makedepends_build $makedepends_host" @@ -15,18 +17,16 @@ source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz 0001-features-ext4-needs-crc32.patch 0002-fix-booting-from-btrfs-raid.patch " -arch="all" -license="GPL2" +builddir="$srcdir/$pkgname-$_ver" -builddir="$srcdir"/$pkgname-$_ver build() { cd "$builddir" - make VERSION=$pkgver-r$pkgrel || return 1 + make VERSION=$pkgver-r$pkgrel } package() { cd "$builddir" - make install DESTDIR="$pkgdir" || return 1 + make install DESTDIR="$pkgdir" } sha512sums="ec80702c6b41cb7898679377bef949cc1079b006c2dcc760c801f60a411eb1d3b3fd34ae2088b0bd3779202953466bce6efd62253d93dda32a8bca9bcd8942fc mkinitfs-3.1.0.tar.xz -- cgit v1.2.3