updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / amaya / PKGBUILD
bloba7342bcc8b80895ba471f552a29aaed0066aa3a7
1 # Contributor: Brad Fanella <bradfanella@archlinux.us>
2 # Contributor: Zerial <fernando@zerial.org>
3 # Contributor: Dalius <dagis@takas.lt>
4 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
5 pkgname=amaya
6 pkgver=11.3.1
7 pkgrel=13
8 pkgdesc="W3C's WYSIWYG HTML Editor"
9 arch=('i686' 'x86_64')
10 url="http://www.w3.org/Amaya/"
11 license=('W3C')
12 depends=('wxgtk' 'mesa' 'raptor1')
13 options=('!makeflags')
14 install=$pkgname.install
15 source=(amaya-fix-amaya-wxfile.patch \
16   amaya-fix-thotlib-png14.patch \
17   amaya-fix-thotlib-wxfile.patch \
18   amaya-splitmode.patch \
19   amaya-wakeupidle.patch \
20   amaya-wxyield.patch \
21   explicite_linking.patch \
22   http://www.w3.org/Amaya/Distribution/$pkgname-sources-$pkgver.tgz)
23 md5sums=('4e79692553e88de93a3f56c40dd442dc'
24          '0418f3a614e6d0a8e27ae038c78d8c4d'
25          '6501c87f7ab45e6c1a3ef214a6ed583e'
26          'bc42d4b3ff7b43c8d0f7955dd1498b01'
27          '32347b32aded742b705a2038416f74de'
28          'c42175f9cc9e90277547828b9cf6a92a'
29          '55687c985a1cab4a5d83f5aae9d06e34'
30          '4a92b4e043fbd1add5b1e17fb7ed8755')
32 build() {
33         cd $srcdir/Amaya$pkgver
35         patch -p1 < $srcdir/amaya-fix-amaya-wxfile.patch
36         patch -p1 < $srcdir/amaya-fix-thotlib-png14.patch
37         patch -p1 < $srcdir/amaya-fix-thotlib-wxfile.patch
38         patch -p1 < $srcdir/amaya-splitmode.patch
39         patch -p1 < $srcdir/amaya-wakeupidle.patch
40         patch -p1 < $srcdir/amaya-wxyield.patch
41         patch -p1 < $srcdir/explicite_linking.patch
43         cd Amaya
44         if [ -d ./WX ]; then
45           rm -rf WX
46         fi
47         mkdir WX; cd WX
49         rm $srcdir/Amaya$pkgver/Mesa/Makefile # to use system's mesa
50         ../configure --prefix=/usr/share --exec=/usr/share \
51           --datadir=/usr/share --enable-system-raptor --enable-system-wx
53         make
56 package() {
57   cd $srcdir/Amaya$pkgver/Amaya/WX
58   install -d $pkgdir/usr/share/Amaya/resources/{svg,icons/16x16}
59   make prefix=$pkgdir/usr/share install
60   install -Dm755 $pkgdir/usr/share/Amaya/wx/bin/amaya $pkgdir/usr/bin/amaya
61   rm $pkgdir/usr/share/Amaya/wx/bin/amaya
63   }