added PKGBUILD n stuff
This commit is contained in:
commit
967c92f8c9
3 changed files with 50 additions and 0 deletions
32
PKGBUILD
Normal file
32
PKGBUILD
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: Jef Roosens
|
||||
|
||||
pkgbase='krabby-git'
|
||||
pkgname='krabby-git'
|
||||
pkgver=0.1.6.r0.g2669909
|
||||
pkgrel=1
|
||||
pkgdesc='Print pokemon sprites in your terminal (development version)'
|
||||
arch=('x86_64')
|
||||
|
||||
url='https://github.com/yannjor/krabby'
|
||||
license=('GPL-3.0')
|
||||
|
||||
makedepends=('rust')
|
||||
conflicts=('krabby')
|
||||
|
||||
source=("${pkgname}::git+https://github.com/yannjor/krabby#branch=main")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
git -C "${pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}"
|
||||
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "${pkgname}/target/release/krabby" -t "${pkgdir}/usr/bin"
|
||||
install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue