From 5442689517e53f0f6feae225175061834dd53902 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Wed, 11 Nov 2020 02:45:20 +0100 Subject: * Add ncgopher new file: ncgopher-git/.SRCINFO new file: ncgopher-git/.gitignore new file: ncgopher-git/PKGBUILD --- ncgopher-git/.SRCINFO | 19 +++++++++++++++++++ ncgopher-git/.gitignore | 1 + ncgopher-git/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 ncgopher-git/.SRCINFO create mode 100644 ncgopher-git/.gitignore create mode 100644 ncgopher-git/PKGBUILD diff --git a/ncgopher-git/.SRCINFO b/ncgopher-git/.SRCINFO new file mode 100644 index 0000000..2ce77e8 --- /dev/null +++ b/ncgopher-git/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ncgopher-git + pkgdesc = A gemini and gopher console client + pkgver = v0.1.5.r32.g16c9515 + pkgrel = 1 + url = https://github.com/jansc/ncgopher + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + makedepends = rust + makedepends = cargo + depends = ncurses + depends = openssl + depends = sqlite + source = ncgopher::git+https://github.com/jansc/ncgopher + sha256sums = SKIP + +pkgname = ncgopher-git + diff --git a/ncgopher-git/.gitignore b/ncgopher-git/.gitignore new file mode 100644 index 0000000..a8a05a5 --- /dev/null +++ b/ncgopher-git/.gitignore @@ -0,0 +1 @@ +ncgopher diff --git a/ncgopher-git/PKGBUILD b/ncgopher-git/PKGBUILD new file mode 100644 index 0000000..4740bee --- /dev/null +++ b/ncgopher-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Deposite Pirate +# +# Upstream: https://git.metalpunks.info/arch-ports + +_pkgname=ncgopher +pkgname=ncgopher-git +pkgver=v0.1.5.r32.g16c9515 +pkgrel=1 +pkgdesc="A gemini and gopher console client" +arch=('i686' 'x86_64') +url="https://github.com/jansc/ncgopher" +license=('BSD') +depends=('ncurses' 'openssl' 'sqlite') +makedepends=('git' 'rust' 'cargo') +source=("${_pkgname}::git+${url}") +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${_pkgname}" + cargo build --release +} + +package() { + cd "${_pkgname}" + + install -d -m 0755 "${pkgdir}/usr/bin" + install -m 0755 target/release/${_pkgname} "${pkgdir}/usr/bin" + + install -d -m 0755 "${pkgdir}/usr/share/man/man1" + install -m 0644 ${_pkgname}.1 "${pkgdir}/usr/share/man/man1" + + install -d -m 0755 "${pkgdir}/usr/share/doc/${_pkgname}" + install -m 0644 CHANGELOG LICENSE \ + "${pkgdir}/usr/share/doc/${_pkgname}" +} -- cgit v1.2.3-70-g09d2