summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcartoon-raccoon2021-03-20 18:47:59 +0800
committercartoon-raccoon2021-03-20 18:47:59 +0800
commit12c89e2f6f001bd4352fdafcfbb7c6a91e3ea9bd (patch)
tree0bf75fd4e72f145817625199d70b2b045e01def0
downloadaur-12c89e2f6f001bd4352fdafcfbb7c6a91e3ea9bd.tar.gz
Initial AUR package publish
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD24
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..036693fa0bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cogsy
+ pkgdesc = TUI-based Discogs collection tracker
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/cartoon-raccoon/cogsy
+ arch = x86_64
+ license = LGPL2
+ makedepends = cargo
+ depends = openssl
+ depends = sqlite3
+ depends = ncurses
+ source = cogsy-0.2.0.tar.gz::https://github.com/cartoon-raccoon/cogsy/cogsy/refs/tags/v0.2.0.tar.gz
+
+pkgname = cogsy
+
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"
+}