35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Maintainer: Alex (https://git.molberg.cloud/alex)
|
|
pkgname=game-of-life-sandbox-git
|
|
pkgver=0.1.0.r5.g3f94533
|
|
pkgrel=1
|
|
pkgdesc="Interactive Conway's Game of Life sandbox with drawing tools and board libraries"
|
|
arch=('x86_64' 'aarch64')
|
|
url='https://git.molberg.cloud/alex/game-of-life-sandbox'
|
|
license=('MIT')
|
|
depends=('glibc' 'freeglut' 'libglvnd' 'libx11')
|
|
makedepends=('git')
|
|
checkdepends=('desktop-file-utils' 'xorg-server-xvfb' 'xorg-xauth' 'libxtst')
|
|
optdepends=('kdialog: native Open File dialog; saved boards and examples work without it')
|
|
provides=('game-of-life-sandbox')
|
|
conflicts=('game-of-life-sandbox')
|
|
source=('game-of-life-sandbox::git+https://git.molberg.cloud/alex/game-of-life-sandbox.git')
|
|
sha256sums=('SKIP')
|
|
_srcdir='game-of-life-sandbox'
|
|
|
|
pkgver() {
|
|
cd "$srcdir/$_srcdir"
|
|
printf '%s.r%s.g%s' "$(cat VERSION)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
make -C "$srcdir/$_srcdir" PREFIX=/usr
|
|
}
|
|
|
|
check() {
|
|
make -C "$srcdir/$_srcdir" PREFIX=/usr check
|
|
}
|
|
|
|
package() {
|
|
make -C "$srcdir/$_srcdir" PREFIX=/usr DESTDIR="$pkgdir" install
|
|
}
|