updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / magicseteditor / PKGBUILD
blobf5313166e5a54eec5713e0ea8f030faec1951088
1 # Contributor: Sapphira Armageddos <shadowkyogre@aim.com>
2 pkgname=magicseteditor
3 pkgver=2.0.0
4 pkgrel=7
5 pkgdesc="A program to help create Magic: the Gathering cards and sets. Comes with no game support."
6 arch=('i686' 'x86_64')
7 url="http://magicseteditor.sourceforge.net"
8 license=('GPL')
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')
13 source=()
14 install=$pkgname.install
15 options=(!strip)
16 md5sums=()
18 build() {
19         cd $srcdir
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
23         cd ./mse-${pkgver}
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
30 package()
32         cd ./mse-${pkgver}
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: