summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrhun Parmaksız2023-02-24 00:36:46 +0300
committerOrhun Parmaksız2023-02-24 00:36:46 +0300
commit2d486ae9dc478ac5b19757128b395c868d8804bf (patch)
treebad597419a51f26a9d51baeee216c3c3edab38f4
downloadaur-2d486ae9dc478ac5b19757128b395c868d8804bf.tar.gz
Initial upload: poketex-git 1.0.1.r4.g18d0d1a-1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD43
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..59e59f940df8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = poketex-git
+ pkgdesc = Simple Pokedex based on TUI (git)
+ pkgver = 1.0.1.r4.g18d0d1a
+ pkgrel = 1
+ url = https://github.com/ckaznable/poketex
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ depends = gcc-libs
+ provides = poketex
+ conflicts = poketex
+ source = git+https://github.com/ckaznable/poketex
+ sha512sums = SKIP
+
+pkgname = poketex-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..3298c27062fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: orhun <orhunparmaksiz@gmail.com>
+# https://github.com/orhun/pkgbuilds
+
+pkgname=poketex-git
+pkgver=1.0.1.r4.g18d0d1a
+pkgrel=1
+pkgdesc="Simple Pokedex based on TUI (git)"
+arch=('x86_64')
+url="https://github.com/ckaznable/poketex"
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cargo' 'git')
+conflicts=("${pkgname%-git}")
+provides=("${pkgname%-git}")
+source=("git+${url}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${pkgname%-git}"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "${pkgname%-git}"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "${pkgname%-git}"
+ cargo test --frozen
+}
+
+package() {
+ cd "${pkgname%-git}"
+ install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}