mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 08:15:01 -05:00
Add ternimal
This commit is contained in:
parent
aeeffa7d70
commit
6e04359b25
32
src/ternimal-git/PKGBUILD
Normal file
32
src/ternimal-git/PKGBUILD
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user