blob: f23f2e3f69f3904baf2c50f87c8370dca51e7b56 (
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
41
|
# Maintainer: Tirr <chwo9843@gmail.com>
pkgname=thtk-git
pkgver=r944.333917e
pkgrel=1
pkgdesc="A collection of tools for exploring and modifying the Touhou game series"
arch=('i686' 'x86_64')
url="https://github.com/thpatch/thtk"
license=('BSD')
depends=('libpng')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("$pkgname"::'git+https://github.com/thpatch/thtk.git')
md5sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init extlib/thtypes
}
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
mkdir -p build
cd build
cmake -DWITH_LIBPNG_SOURCE=OFF -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_SKIP_INSTALL_RPATH=ON ..
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="$pkgdir/" install/strip
cd ..
install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"
}
|