aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-25 22:37:39 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-03-25 22:37:39 +0100
commitc841fb0119ff6aafa411a2765ad747643693f748 (patch)
tree930d536fde1299a094a27d819f290c95fc0ff8bc
parent48524ca117810bf731d4225ffc6e719c9b037b8e (diff)
downloadaports-c841fb0119ff6aafa411a2765ad747643693f748.tar.bz2
aports-c841fb0119ff6aafa411a2765ad747643693f748.tar.xz
main/smartmontools: improve abuild
-rw-r--r--main/smartmontools/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/smartmontools/APKBUILD b/main/smartmontools/APKBUILD
index 91990f52fe..2c65bc4661 100644
--- a/main/smartmontools/APKBUILD
+++ b/main/smartmontools/APKBUILD
@@ -6,16 +6,17 @@ pkgdesc="Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives."
url="http://smartmontools.sourceforge.net"
arch="all"
license="GPL"
-depends=
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
smartd.initd
smartd.confd
"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -26,11 +27,14 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
+
make DESTDIR="$pkgdir"/ install
- install -Dm755 ../smartd.initd "$pkgdir"/etc/init.d/smartd
- install -Dm644 ../smartd.confd "$pkgdir"/etc/conf.d/smartd
+
+ install -Dm755 "$srcdir"/smartd.initd "$pkgdir"/etc/init.d/smartd
+ install -Dm644 "$srcdir"/smartd.confd "$pkgdir"/etc/conf.d/smartd
}
+
md5sums="093aeec3f8f39fa9a37593c4012d3156 smartmontools-6.5.tar.gz
b646176ec1b5b1eb7175b39cbef1be2f smartd.initd
371cdb7cc9dc924b6d12224d66b193c6 smartd.confd"