blob: c327b47785b2f3e3f28d111e2d3a6062bbfd1c5c (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net>
pkgname=smolbote-git
pkgdesc='Yet another no-frills browser'
pkgver=r0
pkgrel=1
_tag=""
_describe=""
_commit=""
_branch="master"
url="https://neueland.iserlohn-fortress.net/smolbote"
install="smolbote.install"
arch=('x86_64')
license=('GPL3')
depends=('qt5-webengine>=5.11.0' 'boost-libs>=1.66.0')
optdepends=('firejail: launch a sandboxed instance')
makedepends=('git' 'cmake' 'pkg-config' 'asciidoctor')
# this is the central repository
source=("git+https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote.git#branch=master"
"git+https://github.com/itay-grudev/SingleApplication.git")
sha512sums=('SKIP'
'SKIP')
#validgpgkeys=(# Aqua-sama <aqua@iserlohn-fortress.net>
# BB1C090188E3E32B375C13FD095DE26BC16D2E98)
prepare() {
cd smolbote
git submodule init
git config submodule.3rd-party/SingleApplication/SingleApplication.git.url $srcdir/SingleApplication
git submodule update 3rd-party/SingleApplication/SingleApplication.git
_tag="r$(git rev-list --count HEAD)"
_describe="r$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)"
_commit=$(git rev-parse HEAD)
# makepkg branches off the cloned repository into makepkg
#_branch=$(git rev-parse --abbrev-ref HEAD)
msg2 "[$(pwd)]: build $_branch:$_commit"
}
pkgver() {
cd smolbote
echo $_describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# generate makefile
# see doc/Building.asciidoc for list of options
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-Dpoi_Version="$_tag" \
-Dpoi_Describe="$pkgver" \
-Dpoi_Build="$_branch:$_commit" \
$srcdir/smolbote
# if you want to manually customize the build, you can use ccmake here
#ccmake .
# Build
make
}
package() {
# Install
DESTDIR="$pkgdir" make install
msg2 "Installing icon and .desktop"
install -Dm644 $srcdir/smolbote/data/poi.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/poi.svg
install -Dm644 $srcdir/smolbote/linux/poi.desktop $pkgdir/usr/share/applications/poi.desktop
msg2 "Installing firejail profile"
install -Dm644 $srcdir/smolbote/data/poi.profile $pkgdir/usr/local/lib/smolbote/poi.profile
msg2 "Installing manpage"
asciidoctor --backend=manpage $srcdir/smolbote/doc/smolbote.7.asciidoc
gzip $srcdir/smolbote/doc/smolbote.7
install -Dm644 $srcdir/smolbote/doc/smolbote.7.gz $pkgdir/usr/local/man/man7/smolbote.7.gz
}
|