1 # Maintainer: Mike Shutlar (iFSS) <mike at epinux(dot)co(dot)uk>
5 pkgdesc="A tool for analyzing and editing NetImmerse/Gamebryo files (.nif)"
7 url="http://niftools.sourceforge.net/wiki/NifSkope"
9 groups=('niftools' 'niftools-git')
11 makedepends=('python2')
13 conflicts=('nifskope')
14 install='nifskope.install'
16 _gitroot="git://github.com/amorilia/nifskope.git"
22 msg "Connecting to the GIT repository..."
23 if [ -d "${srcdir}/${_gitname}" ] ; then
24 cd ${_gitname} && git pull origin
26 git clone --depth=1 --recursive ${_gitroot}
28 msg "GIT checkout done (who invented that stupid 'server timeout' message? :)"
31 cd "${srcdir}/${_gitname}/docsys"
35 cd "${srcdir}/${_gitname}"
39 cd "${srcdir}/${_gitname}/lang"
40 for i in *.ts; do lrelease $i; done
43 cd "${srcdir}/${_gitname}"
44 qmake -after TARGET=nifskope
50 cd "${srcdir}/${_gitname}"
51 install -D -m755 nifskope "${pkgdir}/usr/bin/nifskope"
52 install -D -m644 nifskope.png "${pkgdir}/usr/share/pixmaps/nifskope.png"
53 install -d "${pkgdir}/usr/share/nifskope/doc"
54 install -d "${pkgdir}/usr/share/nifskope/shaders"
55 install -d "${pkgdir}/usr/share/nifskope/lang"
56 install -D -m644 docsys/nifxml/nif.xml "${pkgdir}/usr/share/nifskope/nif.xml"
57 install -D -m644 docsys/kfmxml/kfm.xml "${pkgdir}/usr/share/nifskope/kfm.xml"
58 install -D -m644 style.qss "${pkgdir}/usr/share/nifskope/style.qss"
59 install -D -m644 shaders/*.frag "${pkgdir}/usr/share/nifskope/shaders"
60 install -D -m644 shaders/*.prog "${pkgdir}/usr/share/nifskope/shaders"
61 install -D -m644 shaders/*.vert "${pkgdir}/usr/share/nifskope/shaders"
62 install -D -m644 docsys/doc/*.html "${pkgdir}/usr/share/nifskope/doc"
63 install -D -m644 docsys/doc/docsys.css "${pkgdir}/usr/share/nifskope/doc"
64 install -D -m644 docsys/doc/favicon.ico "${pkgdir}/usr/share/nifskope/doc"
65 install -D -m644 lang/*.ts "${pkgdir}/usr/share/nifskope/lang"
66 install -D -m644 lang/*.qm "${pkgdir}/usr/share/nifskope/lang"
67 install -D -m644 linux-install/nifskope.desktop "${pkgdir}/usr/share/applications/nifskope.desktop"
68 install -d "${pkgdir}/usr/share/mime/application"
69 install -D -m644 linux-install/*.xml "${pkgdir}/usr/share/mime/application"
70 install -D -m644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
71 install -D -m644 *.TXT "${pkgdir}/usr/share/nifskope/doc"