updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wings-bin / PKGBUILD
blob724af290251e3afaa7e4f1f886c55d651fa68eab
1 # Contributor: Filipp Andjelo <scorp@mailueberfall.de>
3 pkgname=wings-bin
4 _pkgname=wings
5 pkgver=1.2
6 pkgrel=1
7 pkgdesc="Subdivision 3D modeler inspired by Nendo and Mirai from Izware"
8 arch=('i686' 'x86_64')
9 url="http://www.wings3d.com"
10 license=('custom')
11 makedepends=(gzip)
12 install=wings.install
13 source=(http://downloads.sourceforge.net/project/wings/wings/${pkgver}/${_pkgname}-${pkgver}-linux.bzip2.run.gz
14         wings.desktop wings.png wings.install)
16 build() {
17   cd ${srcdir}
19   # Unpack binary installer
20   zcat ./${_pkgname}-${pkgver}-linux.bzip2.run.gz > /dev/null
21   chmod +x ./${_pkgname}-${pkgver}-linux.bzip2.run
22   ./${_pkgname}-${pkgver}-linux.bzip2.run --noexec --target ./temp
24   # Install files
25   cd ${srcdir}/temp
26   sed -i 's|^INSTALL_DIR=.*$|INSTALL_DIR="$1"|' install_wings
27   sed -i 's|ROOTDIR=%ROOTDIR%|ROOTDIR=/usr/share/wings|' install_wings
28   ./install_wings ${pkgdir}/usr/share/wings
29   install -D -m755 ${pkgdir}/usr/share/wings/wings ${pkgdir}/usr/bin/wings
30   install -D -m644 ${pkgdir}/usr/share/wings/license.terms ${pkgdir}/usr/share/licenses/wings/license.terms
31   install -D -m644 ${srcdir}/wings.desktop ${pkgdir}/usr/share/applications/wings.desktop
32   install -D -m644 ${srcdir}/wings.png ${pkgdir}/usr/share/pixmaps/wings.png
34   # Cleanup
35   rm ${pkgdir}/usr/share/wings/{wings,license.terms}
38 md5sums=('a17534d2020e75c1423b61e13428f1a1'
39          '5d27a114599aea3a245e828594173614'
40          '150ee5b1b9b44e20862210c9b01e53f4'
41          'fe97a01e5f683b08eb8079120117d94e')