1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-21 16:25:00 -05:00

Add ternimal

This commit is contained in:
Travis Burtrum 2017-11-08 22:39:30 -05:00
parent aeeffa7d70
commit 6e04359b25

32
src/ternimal-git/PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: xiretza <xiretza+aur@gmail.com>
_pkgname=ternimal
pkgname="${_pkgname}-git"
pkgver=r5.2eea4f4
pkgrel=2
pkgdesc="Simulate a lifeform in the terminal"
arch=('x86_64' 'i686' 'armv7h')
url="https://github.com/p-e-w/ternimal"
license=('GPL3')
makedepends=('rust' 'git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}"
rustc -O ternimal.rs
}
package() {
cd "$srcdir/${_pkgname}"
install -Dm755 -t "${pkgdir}/usr/bin/" ternimal
}