summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorchris west2020-02-23 15:19:50 -0800
committerchris west2020-02-23 15:19:52 -0800
commit60ca429292f0880235a93666441052cb43c15d7b (patch)
tree46049dc3de0383768fb9e6e45bfd858930741b45
downloadaur-60ca429292f0880235a93666441052cb43c15d7b.tar.gz
phetch gopher client
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD25
-rw-r--r--README.md9
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..56925355bcf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = phetch
+ pkgdesc = A quick lil gopher client for your terminal.
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = https://github.com/xvxx/phetch
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = openssl
+ source = phetch-0.9.0.tar.gz::https://crates.io/api/v1/crates/phetch/0.9.0/download
+ sha256sums = ae97e341446bbf01be48aaefd9171de6b0b2e20b85c67dc77ec22251b818f7db
+
+pkgname = phetch
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a7b4fc5c96
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+#Maintainer: chris west <c@xvxx.io>
+
+pkgname=phetch
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="A quick lil gopher client for your terminal."
+url="https://github.com/xvxx/phetch"
+depends=('openssl')
+makedepends=('cargo')
+arch=('x86_64')
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download")
+sha256sums=('ae97e341446bbf01be48aaefd9171de6b0b2e20b85c67dc77ec22251b818f7db')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --locked --release
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "doc/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..fee250aca1a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,9 @@
+[AUR][aur] PKGBUILD for [phetch][phetch].
+
+Reminder:
+
+ makepkg --printsrcinfo > .SRCINFO
+
+[aur]: https://aur.archlinux.org/
+[phetch]: https://github.com/xvxx/phetch
+