arch pkgbuild
This commit is contained in:
parent
7fe497ebb1
commit
fefa290643
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1 +1,5 @@
|
|||
/target
|
||||
|
||||
# build/arch-linux
|
||||
build/arch-linux/*
|
||||
!build/arch-linux/PKGBUILD
|
||||
|
|
30
build/arch-linux/PKGBUILD
Normal file
30
build/arch-linux/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
pkgname=pokerust-git
|
||||
pkgdesc="Pokemon Colorscripts written in Rust"
|
||||
_gitname=pokerust
|
||||
pkgver=r5.7fe497e
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url="https://github.com/Vomitblood/$_gitname"
|
||||
license=('GPL')
|
||||
depends=('glibc' 'gcc-libs')
|
||||
makedepends=('git' 'cargo')
|
||||
provides=("$_gitname")
|
||||
source=("git+$url.git")
|
||||
md5sums=('SKIP')
|
||||
options=(!debug)
|
||||
PKGEXT='.pkg.tar'
|
||||
|
||||
pkgver() {
|
||||
cd "$_gitname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_gitname"
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname"
|
||||
install -Dm755 target/release/$_gitname "$pkgdir/usr/bin/$_gitname"
|
||||
}
|
Loading…
Reference in a new issue