diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | README.md | 9 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..56925355bcf4 --- /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 000000000000..1a7b4fc5c964 --- /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 000000000000..fee250aca1ae --- /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 + |