blob: 5be1f1592f6064ca7c39f7dad7828d8233f84ecd (
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
|
# Maintainer: jinzhongjia <mail@nvimer.org>
pkgname=webui-nossl
_pkgname=webui
pkgver=2.4.2+36+ga994629f
pkgrel=1
pkgdesc="Use any web browser as GUI, with your preferred language in the backend and HTML5 in the frontend, all in a lightweight portable lib.(without ssl support)"
arch=('x86_64')
url="https://webui.me/"
license=('MIT')
depends=("glibc")
conflicts=('webui')
makedepends=("git" "zig")
_commit=a994629f90454b78f83916a9911505e0d38d851e
source=("git+https://github.com/webui-dev/webui.git#commit=${_commit}")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --tags --exclude nightly | sed 's/^v//;s/-/+/g'
}
build() {
cd "$srcdir/$_pkgname"
zig build -Dis_static=false -Denable_tls=false
zig build -Dis_static=true -Denable_tls=false
}
package() {
cd "$srcdir/$_pkgname"
# install header file
install -Dm644 "include/webui.h" "$pkgdir/usr/include/webui.h"
install -Dm644 "include/webui.hpp" "$pkgdir/usr/include/webui.hpp"
# install library
install -Dm644 "zig-out/lib/libwebui.a" "$pkgdir/usr/lib/libwebui.a"
install -Dm755 "zig-out/lib/libwebui.so" "$pkgdir/usr/lib/libwebui.so"
# install license file
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|