summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbd4a15e86a4abb5ad03fd42ae4ec1ee715ecab0 (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: Nathan Wong, NorthWestWind <wsyn148@gmail.com> 
_pkgname=nintyfont
pkgname=$_pkgname-git
pkgver=1.0.alpha.2.r2.g38af946
pkgrel=1
pkgdesc="Nintendo binary font editor"
arch=('any')
url="https://github.com/hadashisora/NintyFont"
license=('GPL3')
groups=()
depends=('fmt9')
makedepends=('base-devel' 'qt5-base' 'cmake')
source=("${_pkgname}::git+https://github.com/hadashisora/NintyFont.git")
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	mkdir -p "${_pkgname}/build"
	cd "${_pkgname}/build"
	cmake -DCMAKE_BUILD_TYPE=Release ..
	make -j$(nproc)
	strip NintyFont
}

package() {
	cd "${_pkgname}/build"
	mkdir -p "$pkgdir/usr/bin"
	cp NintyFont "$pkgdir/usr/bin/"
}