From 1a6c5b4593267c10731930e1e4d6ee5e792ed804 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 10 Feb 2018 20:34:41 -0600 Subject: main/libatasmart: modernise, mark no tests, fix license --- main/libatasmart/APKBUILD | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'main/libatasmart') diff --git a/main/libatasmart/APKBUILD b/main/libatasmart/APKBUILD index 2bbd8fb286..31b04328c2 100644 --- a/main/libatasmart/APKBUILD +++ b/main/libatasmart/APKBUILD @@ -6,7 +6,8 @@ pkgrel=1 pkgdesc="ATA S.M.A.R.T. Reading and Parsing Library" url="http://0pointer.de/blog/projects/being-smart.html" arch="all" -license="GPL" +options="!check" # No test suite. +license="LGPL-2.1+" depends= depends_dev="eudev-dev" makedepends="$depends_dev linux-headers" @@ -14,16 +15,14 @@ install= subpackages="$pkgname-dev $pkgname-doc" source="http://0pointer.de/public/$pkgname-$pkgver.tar.xz" -_builddir="$srcdir"/$pkgname-$pkgver - prepare() { - cd "$_builddir" - update_config_sub || return 1 - # apply patches here + cd "$builddir" + update_config_sub + default_prepare } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -32,15 +31,14 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ - --localstatedir=/var \ - || return 1 + --localstatedir=/var - make || return 1 + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } sha512sums="ec9edb019c477873b01289ba365ad0ed0946505d651c1f6f83a63ef61b3976a5db6439c8a0c74d9a55325db9a3a587ad6f655f8d1af9387b0d08356eccabdb62 libatasmart-0.19.tar.xz" -- cgit v1.2.3