7 pkgdesc="MGRX is a 2D graphics C library derived from the GRX library. GRX was
8 originaly written by Csaba Biegl for DJ Delorie's DOS port of the GCC
10 arch=('i686' 'x86_64')
11 license=('GPL' 'LGPL')
12 url="http://www.fgrim.com/mgrx/"
17 cd ${srcdir}/${pkgname}${_pkgver}
18 cp ${startdir}/patch.* .
19 if [ `uname -m` == 'x86_64' ]; then
20 patch makedefs.grx < patch.64
22 patch makedefs.grx < patch.32
25 patch src/makefile.x11 < patch.x11
27 make -j4 -f makefile.x11 || return 1
29 mkdir -p $pkgdir/usr/{bin,lib,include,share/mgrx/fonts}
30 install -m755 bin/*2c bin/xmodetest $pkgdir/usr/bin/
31 install -m755 lib/unix/*a lib/unix/libmgrxX.so.0.1.0 $pkgdir/usr/lib/
32 install -m755 fonts/* $pkgdir/usr/share/mgrx/fonts
33 install -m755 include/* $pkgdir/usr/include
35 ln -s libmgrxX.so.0.1.0 libmgrxX.so
37 source=( "http://www.fgrim.com/mgrx/zfiles/$pkgname${_pkgver}.tar.gz"
38 patch.64 patch.32 patch.x11)
39 md5sums=( b80ac0a024c166a116dee07cfd590f50
40 d1c7659abe97b32f3b8eeecaa552f66b
41 9985cca7ce4b8d0408707e188f4aace4
42 66c4990927a2c79d0985641fcbb95c54)