[arch-commits] Commit in paintown/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Wed Mar 26 09:45:42 UTC 2014
Date: Wednesday, March 26, 2014 @ 10:45:42
Author: svenstaro
Revision: 108289
upgpkg: paintown 3.6.0-3
Fix FS#39552
Modified:
paintown/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-26 08:08:00 UTC (rev 108288)
+++ PKGBUILD 2014-03-26 09:45:42 UTC (rev 108289)
@@ -6,7 +6,7 @@
pkgname=paintown
pkgver=3.6.0
-pkgrel=2
+pkgrel=3
pkgdesc="Open source fighting game in the same genre as Streets of Rage and Teenage Mutant Ninja Turtles"
arch=('i686' 'x86_64')
url="http://paintown.sourceforge.net/"
@@ -14,14 +14,10 @@
depends=('python2' 'freetype2' 'sdl' 'libpng' 'mpg123' 'libogg' 'libvorbis')
makedepends=('cmake')
#install=paintown.install
-source=(http://downloads.sourceforge.net/sourceforge/paintown/$pkgname-$pkgver.tar.bz2
- paintown.png
- paintown.desktop)
-md5sums=('5c1160bee51fe2011a1141c490a5d368'
- 'ed547f1377212ea079cf9b0a1ad2d587'
- '30d66c53c3f522eedab8a0125123b53f')
+source=(http://downloads.sourceforge.net/sourceforge/paintown/$pkgname-$pkgver.tar.bz2)
+md5sums=('5c1160bee51fe2011a1141c490a5d368')
-build() {
+prepare() {
cd "$pkgname-$pkgver"
# fix python2 header
@@ -29,8 +25,14 @@
sed -i "s#/usr/bin/python#/usr/bin/env python2#" $file
done
+ sed -i "s/find_package(FREETYPE)/find_package(Freetype)/g" CMakeLists.txt
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
mkdir -p build && cd build
- cmake ..
+ cmake -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 ..
make
cp bin/paintown ..
}
More information about the arch-commits
mailing list