summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e438c2e1d9b66d9632e0525b29d4b2a3c916851 (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=libopenmpt-modplug
_pkgver=0.8.9.0-openmpt1
pkgver=${_pkgver%-*}
pkgrel=1
pkgdesc='A compat layer/bridge from libmodplug to libopenmpt'
url='http://lib.openmpt.org/'
license=('BSD')
arch=('i686' 'x86_64')
depends=('libopenmpt>=0.5.0')
conflicts=('libmodplug')
provides=('libmodplug')
install='libopenmpt-modplug.install'
source=("https://lib.openmpt.org/files/$pkgname/$pkgname-${_pkgver}.tar.gz")
sha256sums=('ecce1a0eecfdb0b5824cab89c270dce59596295a2c17c2b043215ecf4d7c4ff7')

build() {
  cd $pkgbase-$_pkgver

  ./configure --prefix=/usr --enable-libmodplug --enable-silent-rules
  make
}

package() {
  cd $pkgbase-$_pkgver

  make DESTDIR="$pkgdir" install

  # link license
  mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
  ln -s ../../doc/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}