blob: 1bc8aed4fa6115fc498e3c75d00b3a3bb92d130e (
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
|
# Maintainer: suliman altassan <suliman.p2019@gmail.com>
# Contributor: Fabio 'Lolix' Loli <fabio.loli@disroot.org>
# Contributor: jinzhongjia <mail@nvimer.org>
pkgname=webui
pkgver=2.5.0+beta.2
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."
arch=('x86_64')
url="https://webui.me/"
license=('MIT')
depends=("openssl" "glibc")
makedepends=("git" "make" "gcc")
provides=("webui")
conflicts=('webui-nossl')
_commit=2e94629304402fdf4b9144397c85cf56e18a35ee
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"
make WEBUI_USE_TLS=1
mv "dist/libwebui-2-secure-static.a" "dist/libwebui.a"
mv "dist/webui-2-secure.so" "dist/libwebui.so"
}
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 "dist/libwebui.a" "$pkgdir/usr/lib/libwebui.a"
install -Dm755 "dist/libwebui.so" "$pkgdir/usr/lib/libwebui.so"
# install license file
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|