summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a28c5af68b350a632d30cdd0856d03a9f536f4c0 (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
34
35
36
# Maintainer: Ivan Semkin <ivan at semkin dot ru>
# Contributor Colin Duquesnoy <colin.duquesnoy@gmail.com>
# Contributor ZeroDot1 <zerodot1@bk.ru>

pkgname=short-circuit-git
_pkgname=${pkgname%-git}
pkgver=r33.19e92c2
pkgrel=1
pkgdesc='A developer scratchpad built for GNOME.'
url='https://gitlab.gnome.org/Bharatkalluri/short-circuit'
license=('GPL3')
conflicts=(shortcircuit)
arch=('any')
makedepends=('git' 'meson')
depends=('dconf' 'hicolor-icon-theme' 'python')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  ( set -o pipefail
    git describe --long 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 "${srcdir}/${_pkgname}"
  arch-meson build
  meson compile -C build
}

package() {
  cd "${srcdir}/${_pkgname}"
  DESTDIR="$pkgdir" meson install -C build
}