summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52e4273e7e31a649d8894447fa2ab2374f0fac87 (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
# Contributor: Steven Honeyman <stevenhoneyman at gmail com>

pkgname=testdisk-wip
pkgver=7.2
pkgrel=3
pkgdesc="Checks and undeletes partitions. Includes PhotoRec signature based recovery tool. WIP version"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="http://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=(http://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 '/<QWidget>/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: