summaryrefslogtreecommitdiffstats
path: root/main/testdisk/APKBUILD
blob: 36773d8d37cca45a79c1a81eebe0b361a8608921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=testdisk
pkgver=6.14
pkgrel=0
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"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="b1f0edabc9035e9ec9c8e0a95059ff3f  testdisk-6.14.tar.bz2"
sha256sums="a597c3ebc375acdf0ff60f44ed8935a301132aae78ec00f64f091637d055326c  testdisk-6.14.tar.bz2"
sha512sums="f479c7863e1a39bf747a0b73b37eba1016e4762373b9b68747fed6141aa8faa7703c89dddc975df18904759292cd7d333ca0619eacb3c1eea76790a917e95774  testdisk-6.14.tar.bz2"