blob: 069e953cd4f65975d10c98caf463205c5a6c45b6 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=domruler-git
pkgver=b5144f7
pkgrel=1
pkgdesc="DOM Ruler is a library to maintain a DOM tree, lay out and stylize the DOM elements by using CSS."
arch=('any')
url="https://github.com/HVML/DOM-Ruler"
license=('LGPL-3.0')
groups=('hvml-git')
provides=(${pkgname%-git} 'DOM-Ruler')
conflicts=(${pkgname%-git})
#replaces=(${pkgname})
depends=('glib2' 'purc')
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu')
optdepends=('purc-fetcher' 'xguipro')
optdepends=('purc: The prime HVML interpreter for C Language.'
'purc-fetcher: The remote data fetcher for PurC.'
'purc-midnight-commander: A generic HVML renderer in text mode for development and debugging.'
'webkit2gtk-hvml: Web content engine for GTK (HVML)'
'xguipro: xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}/"
# git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
git describe --always --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname%-git}"
# CMake build
# cmake -DCMAKE_BUILD_TYPE=Debug \
# -DPORT=Linux \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_LIBEXECDIR=lib \
# -B build
# cmake --build build
# Ninja build
cmake -DCMAKE_BUILD_TYPE=Debug \
-DPORT=Linux \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-B build \
-G Ninja
ninja -C build
}
package() {
# make install
# make -C "${srcdir}"/${pkgname%-git}/build install DESTDIR="${pkgdir}"
# ninja install
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}
|