aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 11:19:57 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-05-25 11:20:23 +0000
commit22f10a56d59d2e94dea46a823255af84422b6048 (patch)
treeafa2089d295e7e6535def860842568c5bda790c4 /main
parent559e983204828b37b8b7478e983f27114bd24e4c (diff)
downloadaports-22f10a56d59d2e94dea46a823255af84422b6048.tar.bz2
aports-22f10a56d59d2e94dea46a823255af84422b6048.tar.xz
main/testdisk: add check(), modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r--main/testdisk/APKBUILD28
1 files changed, 11 insertions, 17 deletions
diff --git a/main/testdisk/APKBUILD b/main/testdisk/APKBUILD
index 19c61285d9..8e82e38700 100644
--- a/main/testdisk/APKBUILD
+++ b/main/testdisk/APKBUILD
@@ -1,42 +1,36 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=testdisk
pkgver=7.0
-pkgrel=3
+pkgrel=4
pkgdesc="A data recovery suite"
url="http://www.cgsecurity.org/wiki/TestDisk"
arch="all"
license="GPL"
-depends=
makedepends="e2fsprogs-dev ntfs-3g-dev ncurses-dev zlib-dev libjpeg-turbo-dev"
-install=
subpackages="$pkgname-doc"
source="http://www.cgsecurity.org/$pkgname-$pkgver.tar.bz2"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
- #update_config_sub || return 1
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
}
-md5sums="f0cfe4ca9dd35f2878b2704251665e9f testdisk-7.0.tar.bz2"
-sha256sums="00bb3b6b22e6aba88580eeb887037aef026968c21a87b5f906c6652cbee3442d testdisk-7.0.tar.bz2"
sha512sums="b1ebe1d2fca453660a17623b70c06e0195cb5f07056fb7bc683d575c034fb71dfb793582c804dcff0ca57789a6de84bbf13b1a554353811660996e42199102e2 testdisk-7.0.tar.bz2"