diff options
author | Igor Dyatlov | 2022-10-14 14:00:37 +0300 |
---|---|---|
committer | Igor Dyatlov | 2022-10-14 14:00:37 +0300 |
commit | d09422f405bbda2ad68ea8ea5355cdafa6f1519e (patch) | |
tree | 405a1849b82fdd95c240f09497e085d679214b9a | |
download | aur-game-of-life-git.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d26fb92cf6dd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = game-of-life-git + pkgdesc = A simulator of Conway's game of life + pkgver = 0.1.2.r14.g5d62c57 + pkgrel = 1 + url = https://github.com/sixpounder/game-of-life + arch = x86_64 + arch = aarch64 + license = GPL3 + checkdepends = appstream-glib + makedepends = git + makedepends = meson + makedepends = cargo + depends = libadwaita + provides = game-of-life + conflicts = game-of-life + source = git+https://github.com/sixpounder/game-of-life.git + b2sums = SKIP + +pkgname = game-of-life-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7134e7ddbdd1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com> + +pkgname=game-of-life-git +pkgver=0.1.2.r14.g5d62c57 +pkgrel=1 +pkgdesc="A simulator of Conway's game of life" +arch=('x86_64' 'aarch64') +url="https://github.com/sixpounder/game-of-life" +license=('GPL3') +depends=('libadwaita') +makedepends=('git' 'meson' 'cargo') +checkdepends=('appstream-glib') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(git+$url.git) +b2sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + arch-meson "${pkgname%-git}" build + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs || : +} + +package() { + meson install -C build --destdir "$pkgdir" +} |