summaryrefslogtreecommitdiff
path: root/freeblocks-git/PKGBUILD
blob: 98a350c262bb0aa9e7b7dd3ad601b8aa5d356e4f (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
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

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
}