summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c2fe1a9aa81668d401aff500f45297d55e760cb (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
# Maintainer: thacoon <thacoon@posteo.de>
pkgname=tilengine-git
pkgver=r170.ea888ae

pkgrel=1
pkgdesc="The 2D retro graphics engine"
arch=("x86_64")
url="https://github.com/megamarc/Tilengine.git"
license=('Mozilla Public License 2.0')

depends=('libpng' 'sdl2')
makedepends=('gcc' 'make')

source=("git+https://github.com/megamarc/Tilengine.git")
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/Tilengine/src
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd $srcdir/Tilengine/src
    make
}

package() {
    install -Dm755 "$srcdir/Tilengine/src/libTilengine.so" "$pkgdir/usr/lib/libTilengine.so"
    install -Dm644 "$srcdir/Tilengine/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 "$srcdir/Tilengine/include/Tilengine.h" "$pkgdir/usr/include/Tilengine.h"
}