summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f8e741821e6800193104e70cf0b65a92a68304f (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
# Maintainer: kamnxt <kamnxt@kamnxt.com>
# Contributor: RedTide <redtid3@gmail.com>

_pkgname="pugl"
pkgname="${_pkgname}-git"
pkgver=r1100.9b5a087
pkgrel=1
pkgdesc="Minimal portable API for GUIs which is suitable for use in plugins."
url="http://drobilla.net/software/pugl"
arch=('x86_64')
license=('custom:ISC')
depends=('libx11' 'libxcb' 'libxcursor' 'libxext' 'cairo')
makedepends=('meson' 'git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}"::"git+https://github.com/lv2/pugl")
sha512sums=('SKIP')
pkgver() {
    cd "${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}"
    meson setup "${pkgname}" build
    meson configure build -Ddocs=disabled
    meson compile -C build
}

package() {
    cd "${srcdir}/build"
    meson install --destdir="${pkgdir}"
    install -Dm644 "${srcdir}/${pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}