updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / yaprm / PKGBUILD
blob1d26cd46648ea70e5523100e65e49f38e3b44db2
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _name=Y.A.P.R.M.
4 pkgname=yaprm
5 pkgver=0.7.1
6 pkgrel=4
7 pkgdesc="A powerful modeller designed to seamlessly interact with the POV-Ray ray tracing renderer."
8 arch=(i686 x86_64)
9 url="http://sourceforge.net/apps/phpwebsite/yaprm/index.php"
10 license=('GPL')
11 depends=('povray' 'libgle' 'gdl2' 'gtkglextmm' 'ftgl' 'desktop-file-utils')
12 makedepends=('intltool')
13 install="$pkgname.install"
14 source=("http://downloads.sourceforge.net/project/$pkgname/$_name/$_name%20$pkgver/$pkgname-$pkgver.tar.gz")
15 md5sums=('965e14c739135bd32b33ab1452000d7d')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   # include missing glu library
21   export LIBS="-lGLU"
23   # remove xdg-mime install
24   sed -i "/xdg-mime/d" data/Makefile.*
26   # remove disable deprecated on gtkmm
27   sed -i '/GTKMM_DISABLE_DEPRECATED/d' configure
29   ./configure --prefix=/usr
30   make CXXFLAGS="$CXXFLAGS -fpermissive"
33 package() {
34   cd "$srcdir/$pkgname-$pkgver"
36   make DESTDIR="$pkgdir/" install
38   install -Dm644 data/yaprm-yml_mime.xml "$pkgdir/usr/share/mime/packages/yaprm-yml.xml"
39   install -Dm644 data/yaprm-ypm_mime.xml "$pkgdir/usr/share/mime/packages/yaprm-ypm.xml"
42 # vim:set ts=2 sw=2 et: