updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / amaya / PKGBUILD
blob9a9ea76b602571c7f46b5b82b6d8ff359cb59143
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 # Contributor: Brad Fanella <bradfanella@archlinux.us>
3 # Contributor: Zerial <fernando@zerial.org>
4 # Contributor: Dalius <dagis@takas.lt>
5 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
6 pkgname=amaya
7 pkgver=11.3.1
8 pkgrel=10
9 pkgdesc="W3C's WYSIWYG HTML Editor"
10 arch=('i686' 'x86_64')
11 url="http://www.w3.org/Amaya/"
12 license=('W3C')
13 depends=('wxgtk' 'libgl' 'raptor1' 'libxt')
14 makedepends=('chrpath')
15 options=('!makeflags')
16 install=$pkgname.install
17 source=(amaya-fix-amaya-wxfile.patch \
18   amaya-fix-thotlib-png14.patch \
19   amaya-fix-thotlib-wxfile.patch \
20   amaya-splitmode.patch \
21   amaya-wakeupidle.patch \
22   amaya-wxyield.patch \
23   explicite_linking.patch \
24   http://www.w3.org/Amaya/Distribution/$pkgname-sources-$pkgver.tgz)
25 md5sums=('4e79692553e88de93a3f56c40dd442dc'
26          '0418f3a614e6d0a8e27ae038c78d8c4d'
27          '6501c87f7ab45e6c1a3ef214a6ed583e'
28          'bc42d4b3ff7b43c8d0f7955dd1498b01'
29          '32347b32aded742b705a2038416f74de'
30          'c42175f9cc9e90277547828b9cf6a92a'
31          '55687c985a1cab4a5d83f5aae9d06e34'
32          '4a92b4e043fbd1add5b1e17fb7ed8755')
34 build() {
35         cd $srcdir/Amaya$pkgver
37         patch -p1 < $srcdir/amaya-fix-amaya-wxfile.patch
38         patch -p1 < $srcdir/amaya-fix-thotlib-png14.patch
39         patch -p1 < $srcdir/amaya-fix-thotlib-wxfile.patch
40         patch -p1 < $srcdir/amaya-splitmode.patch
41         patch -p1 < $srcdir/amaya-wakeupidle.patch
42         patch -p1 < $srcdir/amaya-wxyield.patch
43         patch -p1 < $srcdir/explicite_linking.patch
45         cd Amaya
46         if [ -d ./WX ]; then
47           rm -rf WX
48           mkdir WX
49         fi
50         cd WX
52         if [ "$CARCH" = "x86_64" ] ; then
53                 [ $NOEXTRACT -eq 1 ] || cp ../../Mesa/configs/linux-x86-64 \
54                   ../../Mesa/configs/current
55         else
56                 [ $NOEXTRACT -eq 1 ] || cp ../../Mesa/configs/linux-x86 \
57                   ../../Mesa/configs/current
58         fi
59         ../configure --prefix=/usr/share --exec=/usr/share \
60           --datadir=/usr/share --enable-system-raptor --enable-system-wx
62          make
65 package() {
66         cd $srcdir/Amaya$pkgver/Amaya/WX
68         install -d $pkgdir/usr/bin
69         make prefix=$pkgdir/usr/share install
71         ln -f -s ../share/Amaya/wx/bin/amaya $pkgdir/usr/bin/amaya
72 #       install -Dm644 $srcdir/Amaya$pkgver/Amaya/amaya/COPYRIGHT \
73 #               $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
75         mkdir -p $pkgdir/usr/share/Amaya/lib
76         cp -a $srcdir/Amaya$pkgver/Amaya/WX/Mesa/lib/libGL.so.1* $pkgdir/usr/share/Amaya/lib/
77         cp -a $srcdir/Amaya$pkgver/Amaya/WX/Mesa/lib/libGLU.so.1* $pkgdir/usr/share/Amaya/lib/
78         chrpath -r /usr/share/Amaya/lib $pkgdir/usr/share/Amaya/wx/bin/amaya_bin
79         chrpath -r /usr/share/Amaya/lib $pkgdir/usr/share/Amaya/wx/bin/print