From f67beb10ba5118ef847a12c3e6f64187f9fbab1a Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Mon, 17 Sep 2018 11:14:36 +0200 Subject: Add freeblocks-git. --- freeblocks-git/.SRCINFO | 22 ++++++++++++++++++++++ freeblocks-git/.gitignore | 1 + freeblocks-git/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ freeblocks-git/freeblocks.install | 11 +++++++++++ 4 files changed, 70 insertions(+) create mode 100644 freeblocks-git/.SRCINFO create mode 100644 freeblocks-git/.gitignore create mode 100644 freeblocks-git/PKGBUILD create mode 100644 freeblocks-git/freeblocks.install (limited to 'freeblocks-git') diff --git a/freeblocks-git/.SRCINFO b/freeblocks-git/.SRCINFO new file mode 100644 index 0000000..3b35cf2 --- /dev/null +++ b/freeblocks-git/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = freeblocks-git + pkgdesc = Tetris Attack-like puzzle game + pkgver = r193.gfa7088c + pkgrel = 2 + url = https://github.com/dorkster/freeblocks + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + depends = sdl2 + depends = sdl2_image + depends = sdl2_mixer + depends = sdl2_ttf + provides = freeblocks + conflicts = freeblocks + replaces = freeblocks + source = freeblocks-git::git+https://github.com/dorkster/freeblocks + sha256sums = SKIP + +pkgname = freeblocks-git + diff --git a/freeblocks-git/.gitignore b/freeblocks-git/.gitignore new file mode 100644 index 0000000..df8bef2 --- /dev/null +++ b/freeblocks-git/.gitignore @@ -0,0 +1 @@ +freeblocks-git 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 + +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 +} diff --git a/freeblocks-git/freeblocks.install b/freeblocks-git/freeblocks.install new file mode 100644 index 0000000..58b897a --- /dev/null +++ b/freeblocks-git/freeblocks.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} -- cgit v1.2.3-70-g09d2