# Contributor: Steven Honeyman pkgname=testdisk-wip pkgver=7.2 pkgrel=4 pkgdesc="Checks and undeletes partitions. Includes PhotoRec signature based recovery tool. WIP version" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="https://www.cgsecurity.org/wiki/TestDisk" license=('GPL') depends=('libjpeg' 'ntfsprogs') optdepends=('libewf: support EnCase files' 'qt5-base: QPhotoRec GUI') makedepends=('qt5-tools') conflicts=('testdisk') provides=('testdisk') source=(https://www.cgsecurity.org/testdisk-$pkgver-WIP.tar.bz2) #md5sums=('5d239865543019227c4ac5052066da6f') md5sums=('SKIP') # they update the source without changing the filename... prepare() { cd "$srcdir/testdisk-$pkgver-WIP" # Some fixes to make it Qt5 capable sed -i '//d' src/*.h src/*.cpp } build() { cd "$srcdir/testdisk-$pkgver-WIP" export QTGUI_LIBS="$(pkg-config Qt5Widgets --libs)" export QTGUI_CFLAGS="-fPIC $(pkg-config Qt5Widgets --cflags)" # add --disable-qt if you do not have qt5-base ./configure --prefix=/usr --enable-sudo make } package() { cd "$srcdir/testdisk-$pkgver-WIP" make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: