blob: 301048099f2638824266d7978ddca37a85c739c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 102267 2013-12-07 10:36:52Z bpiotrowski $
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
pkgname=performous
pkgver=0.7.0
pkgrel=11
pkgdesc='A free game like "Singstar", "Rockband" or "Stepmania"'
arch=('i686' 'x86_64')
url="http://performous.org/"
license=('GPL')
depends=('boost-libs' 'imagemagick' 'glew' 'libxml++' 'portaudio' 'portmidi' 'librsvg' 'ffmpeg') # opencv
makedepends=('cmake' 'pkgconfig' 'help2man' 'boost' 'mesa')
optdepends=('performous-freesongs: free songs for performous')
source=(http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/performous-$pkgver.tar.bz2
performous-0.7.0-cmake.patch
fix-noisy-sound-output.patch
ffmpeg-2.0.patch)
md5sums=('60f3f72b51a630a4aa996484aedb9526'
'7da8aef3f4dd28e19f95957ae9ac2bb1'
'820dc6d1a91c23f0ef56e2cd1759afb6'
'9f781162b6ebc77b68caa05e2941c527')
prepare() {
cd performous-${pkgver}
# patch from gentoo
patch -Np0 -i ../performous-0.7.0-cmake.patch
# fix FS#33948 (merged upstream)
patch -Np1 -i ../fix-noisy-sound-output.patch
# fix building with ffmpeg-2.0
patch -Np1 -i ../ffmpeg-2.0.patch
# since freetype2-2.5.1 include files aren't anymore in the freetype subdir
sed -i "s#freetype/freetype.h#freetype.h#g" cmake/Modules/FindFreetype.cmake
}
build() {
cd performous-${pkgver}
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd performous-${pkgver}/build
make DESTDIR="$pkgdir" install
}
|