summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f94c06be5ddefccb76b7bbd38c512fa7a7ead0cf (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
# Maintainer: Bas Magré <Opvolger@gmail.com>
# current version libxmp-git has no aarch64 support.
pkgname='libxmp-aarch64-git'
pkgver=libxmp.4.4.1.r161.g92313f6f
pkgrel=2
pkgdesc="Libxmp is a library that renders module files to PCM data. It supports over 90 mainstream and obscure module formats."
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="http://xmp.sourceforge.net/"
license=('LGPL2.1')
depends=('sdl' 'libvorbis' 'curl' 'glibc')
optdepends=('pulseaudio')
makedepends=('git' 'make' 'autoconf')
conflicts=('libxmp')
provides=('libxmp')
source=('git+https://github.com/cmatsuoka/libxmp.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/libxmp"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/libxmp"
  autoconf
}

build() {
  cd "${srcdir}/libxmp"
  ./configure --prefix=/usr
  make
}

check() {
  cd "${srcdir}/libxmp"
  make -k check
}

package() {
  cd "${srcdir}/libxmp"
  make DESTDIR="$pkgdir" install
}