blob: 7188daaada7b6b4cc7b64ab6aceab7e250fbf918 (
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
|
# Maintainer: LinArcx <linarcx@gmail.com>
pkgname='giti-git'
pkgver=1.0.0.r3.g940e84f
pkgrel=1
pkgdesc='Permanent observer of your git directories'
arch=('any')
url='https://github.com/LinArcX/giti'
license=('GPL-3.0')
makedepends=('git' 'meson' 'pkgconf' 'vala' 'ninja')
depends=('gtk3' 'libgit2-glib' 'libgee' 'granite')
source=("${pkgname}::git+https://github.com/LinArcX/giti.git")
sha256sums=('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() {
arch-meson giti-git build
ninja -C build
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
}
|