# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=testdisk
pkgver=7.2
pkgrel=1
pkgdesc="Checks and undeletes partitions + PhotoRec, signature based recovery tool"
arch=('x86_64')
url="https://www.cgsecurity.org/index.html?testdisk.html"
license=('GPL-3.0-or-later')
depends=('libjpeg' 'openssl' 'ntfsprogs')
source=(https://www.cgsecurity.org/$pkgname-$pkgver.tar.bz2)

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr \
              --without-ewf \
              --enable-sudo
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
sha256sums=('f8343be20cb4001c5d91a2e3bcd918398f00ae6d8310894a5a9f2feb813c283f')
