summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e14620a0c3733a1f0a58ba9bfc2e88ceeb0cb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: fossdd <fossdd@tutanota.com>
pkgname=fossil-gemini-git
_pkgname=${pkgname%-gemini-git}
pkgver=v1.3.r3.gb7293d7
pkgrel=1
pkgdesc="A simple GTK Gopher/Gemini client written in Vala"
url='https://github.com/koyuspace/fossil'
license=(MIT)
arch=(x86_64)
depends=(gtk3 json-glib gnutls)
makedepends=(gtk3 vala meson cmake python json-glib gnutls gettext granite)
conflicts=(fossil)
provides=(fossil)
source=("git+https://github.com/koyuspace/fossil.git")
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"
  ./build.sh
}

package() {
  cd "$_pkgname"
  ./install.sh
}