summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcartoon-raccoon2021-03-20 18:47:59 +0800
committercartoon-raccoon2021-03-20 18:47:59 +0800
commit12c89e2f6f001bd4352fdafcfbb7c6a91e3ea9bd (patch)
tree0bf75fd4e72f145817625199d70b2b045e01def0 /PKGBUILD
downloadaur-12c89e2f6f001bd4352fdafcfbb7c6a91e3ea9bd.tar.gz
Initial AUR package publish
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..029ed93d805
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Sammy <shaughn.chan@gmail.com>
+pkgname=cogsy
+pkgver=0.2.0
+pkgrel=1
+pkgdesc='TUI-based Discogs collection tracker'
+arch=('x86_64')
+url="https://github.com/cartoon-raccoon/cogsy"
+license=("LGPL2")
+depends=('openssl' 'sqlite3' 'ncurses')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cartoon-raccoon/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
+sha256sums=('e07bdc5eaad6d288426cc1c7902e8bab704cf38ee17b9e48d3c600dc61c1eae0')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ cargo build --locked --release --target-dir target
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -Dm755 target/release/cogsy "${pkgdir}/usr/bin/cogsy"
+}