blob: caac7b70693b8de0cc50866d92f268b25f7022f8 (
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
|
# Maintainer: jinzhongjia <mail@nvimer.org>
pkgname=webui-nossl
_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.(without ssl support)"
arch=('x86_64')
url="https://webui.me/"
license=('MIT')
depends=("glibc")
makedepends=("git" "make" "gcc")
provides=("webui")
conflicts=("webui")
_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
mv "dist/libwebui-2-static.a" "dist/libwebui.a"
mv "dist/webui-2.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"
}
|