blob: baaec79d9d7350d2ab36c7c91bea1d7f69422e97 (
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
37
38
39
40
41
42
43
44
|
# Maintainer: Angelo Haller <aur.archlinux@szanni.org>
pkgname=libui-ng-git
pkgver=alpha4.1.r694.g1adc16c5
pkgrel=1
pkgdesc="A portable GUI library for C."
arch=('x86_64' 'aarch64')
url="https://github.com/libui-ng/libui-ng"
license=('MIT')
depends=('gtk3>=3.10')
makedepends=('git' 'meson')
source=("$pkgname"::'git+https://github.com/libui-ng/libui-ng.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
arch-meson build
meson compile -C build
cd build/meson-out
ln -sf libui.so.0 libui.so
}
check() {
cd "$srcdir/$pkgname"
# WARNING: These will fail in headless mode!
meson test -C build --print-errorlogs
}
package() {
cd "$srcdir/$pkgname"
install -D -m644 ui.h "${pkgdir}/usr/include/ui.h"
install -D -m755 build/meson-out/libui.so "${pkgdir}/usr/lib/libui.so"
install -D -m755 build/meson-out/libui.so.0 "${pkgdir}/usr/lib/libui.so.0"
install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|