desktop/smc/PKGBUILD
Francesco Marinucci 0c7b63bc02 smc: rebuild
2014-06-11 13:21:33 +00:00

77 lines
2.4 KiB
Bash

# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=smc
pkgver=1.9
_musicver=5.0
pkgrel=19
pkgdesc="Secret Maryo Chronicles"
arch=('x86_64')
url="http://www.secretmaryo.org/"
license=('GPL3')
depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'cegui-0.7' 'boost' 'libpng')
makedepends=('autoconf' 'automake')
categories=('games')
source=(http://downloads.sourceforge.net/smclone/$pkgname-$pkgver.tar.bz2
http://downloads.sourceforge.net/smclone/SMC_Music_${_musicver}_high.zip
smc-for-cegui-v0-7.diff
smc.desktop
smc.png
boost_filesystem3.diff)
md5sums=('75ab7826303c49aec25b052a8b90287f'
'0bccac29052d3eed93e88535312eaaa2'
'51dfea21b741ad19df14e738df52f1cf'
'aca433b9b28a4959d3bc94516547a267'
'efca7580e28748625eb676c9d24ee122'
'3dc17e32b41605949a1001a415bd510a')
build() {
cd $srcdir/$pkgname-$pkgver
# To remove when smc will be compatible with cegui-0.7.x.
patch -Np1 -i ${srcdir}/smc-for-cegui-v0-7.diff
# Fix build.
export CXXFLAGS="${CXXFLAGS} -fpermissive"
# Fix for boost >= 1.50.
patch --binary -Np1 -i "${srcdir}/boost_filesystem3.diff"
sed -e "s#dir_itr->path().leaf();#dir_itr->path().filename().string();#" -i src/overworld/world_manager.cpp
./autogen.sh
LIBS+="-lX11 -lboost_system" \
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make install LDADD=-lpng DESTDIR=$pkgdir
# Desktop Integration.
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
cp -R $srcdir/data/music $pkgdir/usr/share/smc/
}
md5sums=('75ab7826303c49aec25b052a8b90287f'
'0bccac29052d3eed93e88535312eaaa2'
'51dfea21b741ad19df14e738df52f1cf'
'aca433b9b28a4959d3bc94516547a267'
'efca7580e28748625eb676c9d24ee122'
'e5b8b81a077217be6d082e30ce525730')
md5sums=('75ab7826303c49aec25b052a8b90287f'
'0bccac29052d3eed93e88535312eaaa2'
'51dfea21b741ad19df14e738df52f1cf'
'aca433b9b28a4959d3bc94516547a267'
'efca7580e28748625eb676c9d24ee122'
'3dc17e32b41605949a1001a415bd510a')
md5sums=('75ab7826303c49aec25b052a8b90287f'
'0bccac29052d3eed93e88535312eaaa2'
'51dfea21b741ad19df14e738df52f1cf'
'aca433b9b28a4959d3bc94516547a267'
'efca7580e28748625eb676c9d24ee122'
'364898789fceea230371f47203122b42')