blob: 66de48a89e48a11c398a7c80e1d6f2f83469e352 (
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: Jon Nordby <jononor@gmail.com>
# CoMaintainer: bartus <arch-user-repoᘓbartus.33mail.com>
# shellcheck disable=SC2034
pkgname=mrg-git
pkgver=0.1.2.r79.ae40b71
pkgrel=1
pkgdesc="C API for creating user interfaces"
arch=(i686 x86_64)
url="https://github.com/hodefoting/mrg"
license=('GPL2')
depends=('mmm' 'gtk3')
makedepends=('git' 'meson')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
mkdir -p ${srcdir}/build
meson ${srcdir}/${pkgname%-git} build --prefix=/usr
NINJA_STATUS="[%p | %f<%r<%u | %cbps ] " ninja -C "${srcdir}/build"
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
}
|