diff options
author | Jack Maguire | 2021-06-18 21:21:18 +0100 |
---|---|---|
committer | Jack Maguire | 2021-06-18 21:21:18 +0100 |
commit | e2bbc08c0bd927463125a30f507caed5b0d3d113 (patch) | |
tree | 9598262012554d291695a2c90b70eafcef6c81cc | |
download | aur-e2bbc08c0bd927463125a30f507caed5b0d3d113.tar.gz |
Initial Push
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d7dc5d34655a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = conway-gol + pkgdesc = Personal implementation of Conway's Game Of Life. See the README for more info. + pkgver = 0.5.0.r59.cdd3494 + pkgrel = 1 + url = https://gitlab.com/Epacnoss/conway-gol.git + arch = x86_64 + license = MIT + makedepends = rust + makedepends = cargo + provides = conway-gol-git + conflicts = conway-gol-git + replaces = {pkgname}-git + +pkgname = conway-gol diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..51d3744e918b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Jack Maguire <jackmaguire1234 at gmail dot com> +pkgname=conway-gol +pkgver=0.5.0.r59.cdd3494 +pkgrel=1 +pkgdesc="Personal implementation of Conway's Game Of Life. See the README for more info." +arch=(x86_64) +url="https://gitlab.com/Epacnoss/conway-gol.git" +license=('MIT') +makedepends=('rust' 'cargo') +provides=("${pkgname}-git") +conflicts=("${pkgname}-git") +replaces=("{pkgname}-git") +noextract=() + +pkgver () { + cd "$(pkgname)" + printf "0.5.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +check() { + cd "$(pkgname)" + cargo test +} + +package() { + cd "$(pkgname)" + cargo build --release + cd ../ + + install -Dm664 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -Dm755 "target/release/${pkgname}" "${pkgdir}"/usr/bin/${pkgname} +} |