summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac8fc2046261e8a94b4084bc6a7de90334acffe6 (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
# Maintainer: Jjohn Regan <john@jrjrtech.com>

pkgname=libgme-git
pkgver=r382.cb2c1cc
pkgrel=1
pkgdesc="Video game music file emulation/playback library (git version)"
url="https://github.com/libgme/game-music-emu"
license=('LGPL')
arch=('x86_64')
depends=('gcc-libs' 'glibc' 'zlib')
makedepends=('cmake' 'git')
source=('game-music-emu::git+https://github.com/libgme/game-music-emu.git')
sha256sums=('SKIP')

provides=('libgme')
conflicts=('libgme')

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

build() {
  cd "$srcdir/game-music-emu"
  mkdir build
  cd build

  cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_SHARED_LIBS=ON \
    -DENABLE_UBSAN=OFF \
    -DGME_ZLIB=ON \
    -DGME_BUILD_EXAMPLES=OFF
  make
}

package() {
  cd "$srcdir/game-music-emu/build"
  make DESTDIR="${pkgdir}" install
}