summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Minnocci2021-03-04 17:30:31 +0100
committerFrancesco Minnocci2021-03-04 17:30:31 +0100
commit749df5f7431aabe995f7c0a3487ebd398abcf64a (patch)
tree1c65bd6334fda395f049ba992a5f0dc7537c761e
downloadaur-749df5f7431aabe995f7c0a3487ebd398abcf64a.tar.gz
Initial package commit
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD33
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..586855e650d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = hackernews_tui
+ pkgdesc = A Terminal UI to browse hacker news.
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/aome510/hackernews-TUI
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ source = hackernews_tui-0.1.1.tar.gz::https://github.com/aome510/hackernews-TUI/archive/v0.1.1.tar.gz
+ sha512sums = aa89e46da73dac55105928997c1bb85d88f9e2f07e52cd3233ec165e64dc5910167c2bce8709060e569df3adabc0c1a910593a406839194e90be05a46ea51630
+
+pkgname = hackernews_tui
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1431abad7f3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
+
+pkgname=hackernews_tui
+_gitname=hackernews-TUI
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="A Terminal UI to browse hacker news."
+arch=("x86_64")
+url="https://github.com/aome510/hackernews-TUI"
+license=('MIT')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/aome510/hackernews-TUI/archive/v$pkgver.tar.gz")
+sha512sums=("aa89e46da73dac55105928997c1bb85d88f9e2f07e52cd3233ec165e64dc5910167c2bce8709060e569df3adabc0c1a910593a406839194e90be05a46ea51630")
+
+build() {
+ cd "${_gitname}-$pkgver"
+
+ cargo build --release --locked --all-features --target-dir=target
+}
+
+check() {
+ cd "${_gitname}-$pkgver"
+
+ cargo test --release --locked --target-dir=target
+}
+
+package() {
+ cd "${_gitname}-$pkgver"
+
+ install -Dm755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+# vim:set ts=2 sw=2 et: