summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d837c4ac6453554412f44da68cb4e387390c7c8 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libmodplug-git
pkgver=r299.g9357867
pkgrel=1
pkgdesc="A MOD playing library"
arch=('i686' 'x86_64')
url="https://modplug-xmms.sourceforge.net/"
license=('custom')
depends=('gcc-libs')
makedepends=('git')
provides=("libmodplug=$pkgver")
conflicts=('libmodplug')
source=("git+https://git.code.sf.net/p/modplug-xmms/git")
sha256sums=('SKIP')


pkgver() {
  cd "git"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "git/libmodplug"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "git/libmodplug"

  make check
}

package() {
  cd "git/libmodplug"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libmodplug"
}