summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c03a3e8a25823efaaea90fed95a966fe43075875 (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
#Maintainer: Okabe Zero-Link (okbzl). Email: okabezerolink@gmail.com

_pkgname=alice-tools
pkgname=${_pkgname}-git
pkgver=0.13.0.r79.gd229d31
pkgver() {
  cd "$pkgname"
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="This is a collection of command-line tools for viewing and editing file formats used in AliceSoft games"
arch=(x86_64)
url="https://github.com/nunuhara/alice-tools"
license=('GPL-2.0-only')
makedepends=(bison flex meson)
depends=(libpng libjpeg-turbo libwebp zlib qt5-base)
source=("${pkgname}::git+${url}.git"
	'galice.desktop')
sha256sums=('SKIP'
	    '8854d6ff3523f1209e781b04308d572b35d089f7c336d5e01cfdb8b45a5c6a54')
prepare () {
	cd "$srcdir/${pkgname}"
	git submodule update --init
}

build() {
	cd "$srcdir/${pkgname}"
	mkdir build
	meson setup build --prefix /usr
	ninja -C build
}

package() {
  cd "$srcdir/${pkgname}"
  DESTDIR="$pkgdir" ninja -C build install

  install -D -m 644 -T \
    "${srcdir}/galice.desktop" \
    "${pkgdir}/usr/share/applications/galice.desktop"
}