diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-13 13:43:15 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-13 13:43:15 +0200 |
commit | 988a01e90a72c323c916aafefa6876411117a660 (patch) | |
tree | 3a26f8ecdfbd8b031354a71ee642b6bb98cf17c1 /community/ddrescue/APKBUILD | |
parent | 019b65c7137da42e3ef974cc882df6cbd43ac410 (diff) | |
download | aports-988a01e90a72c323c916aafefa6876411117a660.tar.bz2 aports-988a01e90a72c323c916aafefa6876411117a660.tar.xz |
community/ddrescue: fix and modernize abuild
Diffstat (limited to 'community/ddrescue/APKBUILD')
-rw-r--r-- | community/ddrescue/APKBUILD | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/community/ddrescue/APKBUILD b/community/ddrescue/APKBUILD index 7620640cd6..62faeacea2 100644 --- a/community/ddrescue/APKBUILD +++ b/community/ddrescue/APKBUILD @@ -6,21 +6,13 @@ pkgdesc="Data recovery tool for block devices with errors" url="http://www.gnu.org/s/ddrescue/ddrescue.html" arch="all !aarch64" license="GPL3+" -depends="" -depends_dev="" -makedepends="$depends_dev" -install="" subpackages="$pkgname-doc" source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - return 0 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ @@ -29,7 +21,7 @@ build() { } check() { - cd "$_builddir" + cd "$builddir" # XXX: Some tests fail on s390x, but only on builder, so ignore it for now. case "$CARCH" in @@ -39,7 +31,7 @@ check() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } |