summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ccf120eec6b7bfc26aa710e638fdb29b1de2be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
pkgname=ayam
pkgver=1.30
pkgrel=1
pkgdesc="Ayam is a free 3D modelling environment for the RenderMan interface."
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/ayam/"
license=('BSD')
depends=('libtiff4')
makedepends=('coreutils')
conflicts=()

_prefix=/opt/$pkgname

source_i686=(http://sourceforge.net/projects/ayam/files/Ayam/$pkgver/$pkgname-$pkgver.linux32.tar.gz)
source_x86_64=(http://sourceforge.net/projects/ayam/files/Ayam/$pkgver/$pkgname-$pkgver.linux64.tar.gz)

md5sums_i686=('b2c0864aa26a00137a67bc25e98234f2')
md5sums_x86_64=('1b17d38057e02604bcbc5fcc2d45196d')

package() {
  cd "$srcdir"

  install -d $pkgdir/opt/$pkgname
  cp -r $pkgname/* $pkgdir/opt/$pkgname

#desktop
#  sed -e "s:/usr/local/ayam:$_prefix:g" $pkgdir/$_prefix/bin/ayam-desktop.desktop > $pkgdir/$_prefix/bin/ayam.desktop
#  chmod 755 $pkgdir/$_prefix/bin/ayam.desktop
#  xdg-desktop-icon install --novendor $pkgdir/$_prefix/bin/ayam.desktop

#sysmenu
  sed -e "s:/usr/local/ayam:$_prefix:g" $pkgdir/$_prefix/bin/ayam-desktop.desktop > $pkgdir/$_prefix/bin/ayam.desktop
  install -d $pkgdir/usr/share/applications
  cp $pkgdir/$_prefix/bin/ayam.desktop $pkgdir/usr/share/applications/ayam.desktop
#  chmod 755 $pkgdir/usr/share/applications/ayam.desktop

#filetype
#  xdg-mime install $pkgdir/$_prefix/bin/ayam-filetype.xml
#  xdg-mime default ayam.desktop application/ayam
#  xdg-icon-resource install --novendor --context mimetypes --size 32 $pkgdir/$_prefix/bin/ayam_icon_32.png application-ayam

  export PATH=$PATH:/opt/ayam/bin
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ayam/bin/plugins
}