summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-05-16 12:50:05 -0500
committerLuis Martinez2021-05-16 12:53:01 -0500
commitbb794efc40d5e023cce0e621568d0ea74b94fc68 (patch)
tree4c9c0b23d1e5028977630cd2d81e9bbf685d20b9
downloadaur-bb794efc40d5e023cce0e621568d0ea74b94fc68.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7b4471401a2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = cork-rs-git
+ pkgdesc = A command-line calculator for hex-lovers
+ pkgver = r30.bd62c53
+ pkgrel = 1
+ url = https://github.com/reddocmd/cork
+ arch = x86_64
+ license = GPL
+ makedepends = cargo
+ makedepends = git
+ depends = gcc-libs
+ provides = cork-rs
+ conflicts = cork-rs
+ source = cork-rs-git::git+https://github.com/reddocmd/cork
+ sha256sums = SKIP
+
+pkgname = cork-rs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a1d77be3cef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+
+pkgname=cork-rs-git
+pkgver=r30.bd62c53
+pkgrel=1
+pkgdesc="A command-line calculator for hex-lovers"
+arch=('x86_64')
+url="https://github.com/reddocmd/cork"
+license=('GPL')
+depends=('gcc-libs')
+makedepends=('cargo' 'git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgname"
+ cargo build --release --locked --all-features --target-dir=target
+}
+
+check() {
+ cd "$pkgname"
+ cargo test --release --locked --target-dir=target
+}
+
+package() {
+ cd "$pkgname"
+ install -Dvm 755 target/release/cork -t "$pkgdir/usr/bin/"
+ install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}