# Q7Z: Installer: Arch
# Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>

pkgname=q7z
realname=Q7Z
oldname=k7z
pkgver=0.8.0
pkgrel=1
pkgdesc="A P7Zip GUI for Linux, which attempts to simplify data compression and backup."
arch=('any')
url=http://${oldname}.sourceforge.net/7Z/${realname}/
license=('GPL3')
depends=('python>=2.5' 'qt>=4.4.1' 'pyqt>=4.4.3' 'p7zip>=4.57' 'tar>=1.15')
makedepends=('python>=2.5' 'qt>=4.4.1' 'pyqt>=4.4.3' 'make>=3.80')
optdepends=('p7zip-gui: The GUI component of P7Zip'
			'xz: Supports XZ archives'
			'bzip2: Supports BZip2 archives'
			'gzip: Supports GZip archives')
replaces=(${oldname})
install=(${realname}.install)

source=(http://prdownloads.sourceforge.net/${oldname}/${realname}-${pkgver}.tar.bz2)
md5sums=('03e58d637a483b1d0688b18ffef838ab')

build() {
	cd ${srcdir}/${realname}/Build

	# Variables
	export Package=1
	export Arch=1

	# Build
	#make uninstall || return 1
	#make clean || return 1
	make || return 1
	make DESTDIR=${pkgdir} install || return 1

	# Messages
	msg "Seek further information or send feedback via the 'Help' menu."
}
