diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-10 20:34:41 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-16 17:15:26 +0000 |
commit | 1a6c5b4593267c10731930e1e4d6ee5e792ed804 (patch) | |
tree | 902a3994471672aa7a4c2d978c01c5fc6da20b98 | |
parent | 491034e4785c0eff20cca83af4bd5c640115fb6a (diff) | |
download | aports-1a6c5b4593267c10731930e1e4d6ee5e792ed804.tar.bz2 aports-1a6c5b4593267c10731930e1e4d6ee5e792ed804.tar.xz |
main/libatasmart: modernise, mark no tests, fix license
-rw-r--r-- | main/libatasmart/APKBUILD | 22 |
1 files changed, 10 insertions, 12 deletions
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" |