updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / pyffi-git / PKGBUILD
blobae430fe3235187ae78cfe8bcc9cc57bbb931d4f8
1 # Maintainer: Mike Shutlar (iFSS) <mike at epinux(dot)co(dot)uk>
2 # Python File Format Interface (PyFFI)
3 pkgname=pyffi-git
4 pkgver=20111016
5 pkgrel=1
6 pkgdesc="Library and editor (QSkope) for block structured binaries (nif,kfm,cgf,egm,dds,tga)"
7 arch=('any')
8 url="http://pyffi.sourceforge.net/"
9 license=('custom:BSD')
10 groups=('niftools-git')
11 depends=('pyqt' 'wine<=1.3.28')
12 provides=('pyffi')
13 conflicts=('pyffi')
15 _gitroot="git://github.com/amorilia/pyffi.git"
16 _gitname="pyffi"
18 build() {
19   cd "${srcdir}"
21   msg "Connecting to the GIT repository..."
22   if [ -d "${srcdir}/${_gitname}" ] ; then
23     cd ${_gitname} && git pull origin
24   else
25     git clone --depth=1 --recursive ${_gitroot}
26   fi
27   msg "GIT checkout done (who invented that stupid 'server timeout' message? :)"
31 package() {
32   cd "${srcdir}/${_gitname}"
33   python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
34   chmod +x "${pkgdir}/usr/lib/python3.2/site-packages/pyffi/utils/mopper.exe"
35   install -D -m644 LICENSE.rst "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE.rst"