summaryrefslogtreecommitdiff
path: root/pcr/ultrastardx-git/PKGBUILD
blob: efdf060afdd9fbf71dd9f146d52630823756b900 (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
pkgname=ultrastardx-git
pkgver=r580.8a761ba8
pkgrel=1
pkgdesc='Free karaoke game. (GIT)'
arch=('i686' 'x86_64')
url="http://ultrastardeluxe.org/"
license=('GPL')
depends=('ffmpeg2.8' 'lua' 'portaudio' 'sdl2' 'sdl2_gfx' 'sdl2_mixer'  'sdl2_net' 'sdl2_ttf' 'sdl2_image' 'ttf-dejavu' 'ttf-freefont' 'wqy-microhei' 'pcre')
makedepends=('git' 'fpc')
#options=('!libtool')
provides=('ultrastardx')
conflicts=('ultrastardx')
groups=('usdx')
source=(
	"git://github.com/UltraStar-Deluxe/USDX.git"
)
sha256sums=(
	'SKIP'
)

pkgver() {
  cd "${srcdir}/USDX"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
cd "${srcdir}/USDX"
./autogen.sh
}


build() {
  cd "${srcdir}/USDX"
  PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" ./configure
  make LDFLAGS="-O1 --sort-common --as-needed -z relro"
}

package() {
	cd "${srcdir}/USDX"
	touch COPYING.txt
	make DESTDIR="$pkgdir/" install
}