summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d8934a6e9cb13d650e7310347d0cadca0b7307f (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
# Maintainer: Jose Riha <jose1711 at gmail dot com>
# Contributor: John Faust <contact at yayponies dot eu>
# Contributor: fhilg
# Contributor: skunk
# Contributor: Mitmischer

pkgname=ultrastardx-git
pkgver=r1538.80adde2e
pkgrel=1
pkgdesc='Free and open source karaoke game. (GIT)'
arch=('i686' 'x86_64')
url="http://usdx.eu/"
license=('GPL-2.0-only')
depends=('ffmpeg' 'lua' 'portaudio' 'sdl2' 'sdl2_gfx' 'sdl2_mixer' 'sdl2_net'
         'sdl2_ttf' 'sdl2_image' 'ttf-dejavu' 'gnu-free-fonts' 'wqy-microhei' 'portmidi'
         'pkg-config' 'autoconf' 'automake')
makedepends=('git' 'fpc')
optdepends=('ultrastar-creator: Qt program to generate USDX songs'
            'ultrastardx-songs: Free songs for USDX'
            'ultrastardx-utility: Manage USDX songs')
#options=('!libtool')
provides=('ultrastardx')
conflicts=('ultrastardx')
groups=('usdx')
source=("git+https://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"
  ./configure --prefix=/usr
  make LDFLAGS="-O1 --sort-common --as-needed -z relro"
}

package() {
  cd "${srcdir}/USDX"
  touch COPYING.txt
  make DESTDIR="$pkgdir/" install
  install -Dm644 dists/ultrastardx.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -Dm644 game/resources/icons/ultrastardx-icon.png "${pkgdir}/usr/share/pixmaps/ultrastardx.png"
}