1 # Contributor: Sapphira Armageddos <shadowkyogre@aim.com>
5 pkgdesc="A program to help create Magic: the Gathering cards and sets. Comes with no game support."
7 url="http://magicseteditor.sourceforge.net"
9 depends=('hunspell' 'libjpeg' 'wxgtk' 'boost-libs')
10 makedepends=('boost' 'unzip')
11 provides=("magicseteditor=${pkgver}")
12 conflicts=('magicseteditor-bin' 'magicseteditor-svn' 'mse2' 'magicseteditor-xyz-mod')
14 install=$pkgname.install
20 #because grabbing the source directly via this causes the md5sum to change due to slight differences
21 wget http://magicseteditor.svn.sourceforge.net/viewvc/magicseteditor/tags/releases/mse-${pkgver}/?view=tar -O magicseteditor-mse-${pkgver}.tar.gz
22 bsdtar -xf magicseteditor-mse-${pkgver}.tar.gz
24 ./configure --prefix=/usr
25 sed -e 's|^\(AM_LDFLAGS = .*\),--as-needed|\1,-Bsymbolic-functions|' -i Makefile
26 make LIBS=-lhunspell-1.3 CPPFLAGS=-I/usr/include/hunspell || return 1
33 make DESTDIR=$pkgdir install || return 1
34 mkdir -p $pkgdir/usr/share/magicseteditor/{resource,data}
35 cp -r ./data/*.mse-locale $pkgdir/usr/share/magicseteditor/data
36 cp -r ./src/resource/common/* $pkgdir/usr/share/magicseteditor/resource
37 cp -r ./src/resource/msw/other/* $pkgdir/usr/share/magicseteditor/resource
38 cp -r ./src/resource/msw/{cursor,icon,tool} $pkgdir/usr/share/magicseteditor/resource
39 rm -rf $pkgdir/usr/share/magicseteditor/resource/{cursor,icon,tool}/.svn
40 rm -rf $pkgdir/usr/share/magicseteditor/data/.svn
41 rm -rf $pkgdir/usr/share/magicseteditor/data/*/.svn
44 # vim:set ts=2 sw=2 et: