summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 223727409b27e610676342817e5d61c9e1faa800 (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
# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>

pkgname=liblcf-git
pkgver=0.1.2.r94.gc02ba45
pkgrel=1
pkgdesc="Library to handle RPG Maker 2000/2003 and EasyRPG projects (development version)"
arch=('i686' 'x86_64')
url="https://easy-rpg.org/"
license=('MIT')
conflicts=('liblcf')
provides=('liblcf')
makedepends=('boost' 'git' 'expat')
source=(liblcf::"git+https://github.com/EasyRPG/liblcf.git")
md5sums=('SKIP')
options=(staticlibs)

pkgver() {
  cd liblcf
  git describe --long | sed 's/-/.r/;s/-/./'
}

build () {
  cd liblcf

  autoreconf -i
  ./configure --prefix=/usr
  make
}

package () {
  cd liblcf

  make DESTDIR="$pkgdir/" install
  # move files to right location, if needed (temporary fix)
  install -d "$pkgdir"/usr/include/liblcf
  mv "$pkgdir"/usr/include/*.h "$pkgdir"/usr/include/liblcf
  # license
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}