diff options
author | Deposite Pirate | 2020-01-24 16:20:51 +0100 |
---|---|---|
committer | Deposite Pirate | 2020-01-24 16:20:51 +0100 |
commit | 7e4599d9da1b7db18184a3a34e8c3fcab2e5856d (patch) | |
tree | dbb7d33047056119e9d46dabb17c3ab3620f353e /castor-git/PKGBUILD | |
parent | 53a778480adf1b367f74e3421c782c991416cb40 (diff) |
* New package: castor. A graphical gemini/gopher/finger client.
new file: castor-git/.SRCINFO
new file: castor-git/PKGBUILD
new file: castor-git/castor-0.4.0-install.patch
Diffstat (limited to 'castor-git/PKGBUILD')
-rw-r--r-- | castor-git/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/castor-git/PKGBUILD b/castor-git/PKGBUILD new file mode 100644 index 0000000..91638f4 --- /dev/null +++ b/castor-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Deposite Pirate <dpirate at metalpunks dot info> +# +# Upstream: https://git.metalpunks.info/arch-ports + +_pkgname=castor +pkgname=castor-git +pkgver=0.4.0.r1.g7f50a34 +pkgrel=1 +pkgdesc="A gemini, gopher and finger graphical client" +arch=('i686' 'x86_64') +url="https://git.sr.ht/~julienxx/castor" +license=('unknown') +depends=('gtk3' 'gdk-pixbuf2' 'pango' 'atk' 'cairo' 'openssl') +makedepends=('git' 'rust' 'cargo') +source=("${_pkgname}::git+${url}" + 'castor-0.4.0-install.patch') +sha256sums=('SKIP' + 'a659bb60626aa505b6f61f2a4669304a9806717858c79facc69b101879e4d0e2') + +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)" + ) +} + +prepare() { + cd "${_pkgname}" + + # Fix installing to pkgdir + patch -p1 -i ../castor-0.4.0-install.patch +} + +build() { + cd "${_pkgname}" + cargo build --release +} + +package() { + cd "${_pkgname}" + make DESTDIR="${pkgdir}" install +} |