added PKGBUILD n stuff

main
Jef Roosens 2022-05-23 13:11:19 +02:00
commit 967c92f8c9
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 50 additions and 0 deletions

13
.SRCINFO 100644
View File

@ -0,0 +1,13 @@
pkgbase = krabby-git
pkgdesc = Print pokemon sprites in your terminal (development version)
pkgver = 0.1.6.r0.g2669909
pkgrel = 1
url = https://github.com/yannjor/krabby
arch = x86_64
license = GPL-3.0
makedepends = rust
conflicts = krabby
source = krabby-git::git+https://github.com/yannjor/krabby#branch=main
md5sums = SKIP
pkgname = krabby-git

5
.gitignore vendored 100644
View File

@ -0,0 +1,5 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

32
PKGBUILD 100644
View 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"
}