aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmidecode
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 13:14:40 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:00:34 +0000
commita069152f89eb4ab9e21f322b18df7aad4742e299 (patch)
tree7c28c930ba33cfab3e523f244e91be31dc37d2e2 /main/dmidecode
parent0578ee06db86020eb127a24fd37a39db68b857f5 (diff)
downloadaports-a069152f89eb4ab9e21f322b18df7aad4742e299.tar.bz2
aports-a069152f89eb4ab9e21f322b18df7aad4742e299.tar.xz
main/dmidecode: modernize abuild
Diffstat (limited to 'main/dmidecode')
-rw-r--r--main/dmidecode/APKBUILD20
1 files changed, 5 insertions, 15 deletions
diff --git a/main/dmidecode/APKBUILD b/main/dmidecode/APKBUILD
index d6f78221be..c9f6cc4381 100644
--- a/main/dmidecode/APKBUILD
+++ b/main/dmidecode/APKBUILD
@@ -6,34 +6,24 @@ pkgdesc="A utility for reporting system hardware as described by BIOS"
url="http://www.nongnu.org/dmidecode"
arch="all"
license="GPL"
-depends=
-makedepends=
subpackages="$pkgname-doc"
source="http://download.savannah.gnu.org/releases/dmidecode/dmidecode-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- # apply patches here
- for i in "$srcdir"/*.patch; do
- [ -f "$i" ] || continue
- msg "Applying $i"
- patch -p1 -i "$i" || return 1
- done
+ default_prepare
sed -e '/^PROGRAMS !=/d' -e 's/-O2/-Os/' -i Makefile || return 1
}
build() {
- cd "$_builddir"
- make prefix=/usr || return 1
+ cd "$builddir"
+ make prefix=/usr
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make prefix=/usr DESTDIR="${pkgdir}" install
}
-md5sums="be7501ad0f844e875976b96106afaa3c dmidecode-3.0.tar.gz"
-sha256sums="698d209ec81f88b2685e07943cd61e1ac125d8f4b3f3f22c777f318a56d94edf dmidecode-3.0.tar.gz"
sha512sums="91c70bedee6a16776ae152c0c4522910d40daaea04044582da4d314b711fc37f406dfaecf1549ce1a404295894e36cfc0d5db270cc8d307f83554cba6b83f1c9 dmidecode-3.0.tar.gz"