### this file is sourced not run
PKGVER=7.1.2018.09 # date indicates when we last copied the source to ibiblio
PKGBUILD=WIP
PKGARCH=x86_64
PKGNAME=testdisk

# source: james
TARBALL=testdisk-7.1-WIP.tar.bz2
MD5SUM=1fae65048cfa520925df0acdd3c37c7c
#SRC_URL=https://www.cgsecurity.org/$TARBALL # changes often
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='qt5-common ntfs-3g'
SLACKDESC="$PKGNAME: $PKGNAME $PKGVER-$PKGBUILD (Data Recovery)
$PKGNAME: 
$PKGNAME: TestDisk is powerful free data recovery software! It was primarily 
$PKGNAME: designed to help recover lost partitions and/or make non-booting 
$PKGNAME: disks bootable again when these symptoms are caused by faulty 
$PKGNAME: software: certain types of viruses or human error (such as 
$PKGNAME: accidentally deleting a Partition Table). Partition table recovery 
$PKGNAME: using TestDisk is really easy.
$PKGNAME: 
$PKGNAME: http://www.cgsecurity.org/wiki/TestDisk
$PKGNAME: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# qt5	
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/$LIBDIR"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include" 

	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# don't keep this
	rm -f /usr/share/icons/hicolor/icon-theme.cache
}


