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

pkgname=liblcf
pkgver=0.8.1
pkgrel=1
pkgdesc="Library to handle RPG Maker 2000/2003 and EasyRPG projects"
arch=('x86_64')
url="https://easyrpg.org"
license=('MIT')
provides=('lcf2xml' 'lcfstrings')
depends=('gcc-libs' 'expat' 'icu' 'libinih')
makedepends=('cmake' 'ninja')
source=("https://easyrpg.org/downloads/player/$pkgver/liblcf-$pkgver.tar.xz")
sha256sums=('e827b265702cf7d9f4af24b8c10df2c608ac70754ef7468e34836201ff172273')

prepare() {
  rm -rf aurbuild
}

build() {
  cmake -S liblcf-$pkgver -B aurbuild -G Ninja \
    -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIBLCF_UPDATE_MIMEDB=OFF
  cmake --build aurbuild
}

check() {
  cmake --build aurbuild --target check
}

package() {
  DESTDIR="$pkgdir" cmake --install aurbuild
  # license
  install -Dm644 liblcf-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}