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

pkgname=ttm_unpack
pkgver=20121203
pkgrel=1
pkgdesc="An extractor for datafiles of 'To the Moon' and other games based on the RPG Maker XP engine"
arch=('i686' 'x86_64')
url="http://davidgow.net/hacks/ttm_unpack.html"
license=('custom')
depends=('glibc')
source=("http://davidgow.net/files/ttm_unpack.c")
sha256sums=('d894c724521e29b95dd22c378ef28e4e470769c75fb8c902ce6192f542bb7804')

build () {
  # compile with our flags
  gcc $CFLAGS ttm_unpack.c $LDFLAGS -o ttm_unpack
}

package () {
  install -Dm755 ttm_unpack "$pkgdir"/usr/bin/ttm_unpack
  # license
  install -d "$pkgdir"/usr/share/licenses/$pkgname
  head -n 17 ttm_unpack.c > "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}