1 # Maintainer: Christopher Rosell <chrippa@tanuki.se>
3 # aur split package hacks
5 true && pkgname=(libupse-hg upse123-hg)
10 pkgdesc='UPSE is an advanced playstation sound emulator which concentrates on sound correctness'
11 arch=('i686' 'x86_64')
12 url='http://nenolod.net/projects/upse/'
14 makedepends=(mercurial libao)
15 source=('makefile-fix.patch')
16 md5sums=('c839a257ec0c7d8a3ff1e74abe18b7cf')
18 _hgroot='http://hg.atheme.org/unofficial'
23 msg "Connecting to Mercurial server...."
25 if [[ -d "$_hgrepo" ]]; then
28 msg "The local files are updated."
30 hg clone "$_hgroot" "$_hgrepo"
33 msg "Mercurial checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_hgrepo-build"
37 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38 cd "$srcdir/$_hgrepo-build"
40 patch -p1 < $startdir/makefile-fix.patch
42 ./configure --prefix=/usr --disable-audplugin --enable-ao
46 package_libupse-hg() {
51 cd "$srcdir/$_hgrepo-build/src/libupse"
52 make DESTDIR="$pkgdir/" install
55 package_upse123-hg() {
56 depends=(libupse-hg libao)
60 cd "$srcdir/$_hgrepo-build/src/upse123"
61 make DESTDIR="$pkgdir/" install
65 # vim:set ts=2 sw=2 et: