diff options
author | Deposite Pirate | 2018-09-17 11:14:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-17 11:14:36 +0200 |
commit | f67beb10ba5118ef847a12c3e6f64187f9fbab1a (patch) | |
tree | 141a1c091a9c8c2f04cbf65b3d74e02a530beca0 /freeblocks-git/PKGBUILD | |
parent | f040d55b8bb98bbea179800f5a9b2b2ea3bc0099 (diff) |
Add freeblocks-git.
Diffstat (limited to 'freeblocks-git/PKGBUILD')
-rw-r--r-- | freeblocks-git/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/freeblocks-git/PKGBUILD b/freeblocks-git/PKGBUILD new file mode 100644 index 0000000..203af45 --- /dev/null +++ b/freeblocks-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Deposite Pirate <dpirate at metalpunks dot info> + +pkgname=freeblocks-git +pkgver=r193.gfa7088c +pkgrel=2 +pkgdesc="Tetris Attack-like puzzle game" +arch=('i686' 'x86_64') +url="https://github.com/dorkster/freeblocks" +license=('GPL3') +depends=('sdl2' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf') +makedepends=('git' 'cmake') +conflicts=('freeblocks') +provides=('freeblocks') +replaces=('freeblocks') +source=("$pkgname::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + printf "r%s.g%s" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +build() { + cd "${pkgname}" + cmake \ + -DCMAKE_C_FLAGS="${CFLAGS}" \ + -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "${pkgname}" + make DESTDIR="${pkgdir}" install +} |