blob: f1ab6a85023db62ece3c9d3d9597bd483d16d541 (
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
|
# Maintainer: Riley Trautman <asonix.dev@gmail.com>
_pkgname=liri-browser
pkgname=${_pkgname}-git
pkgver=0.3.r239.gf11a68d
pkgrel=1
pkgdesc="A Web Browser using the QML Material framework from the Papyros Project"
arch=("i686" "x86_64")
url="https://github.com/liri-project/liri-browser"
license=("GPLv3")
depends=("qt5-base" "qt5-webengine" "qt5-multimedia" "qml-material-git")
makedepends=("git")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
install=${_pkgname}.install
source=("${_pkgname}::git+https://github.com/liri-project/liri-browser.git"
"liri-browser.sh" "liri-browser.desktop" "liri-browser.install")
sha256sums=("SKIP" "SKIP" "SKIP" "SKIP")
pkgver() {
cd "${_pkgname}"
# cutting off 'foo-' prefix that presents in the git tag
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_pkgname}"
qmake "liri-browser.pro"
make
}
package() {
cd "${_pkgname}"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/share/applications
for i in 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
install -Dm644 "$srcdir"/"${_pkgname}"/icons/liri-browser.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/liri-browser.png
done
install -m755 ../liri-browser.sh \
"$pkgdir"/usr/bin/liri-browser
install -m755 ../liri-browser.desktop \
"$pkgdir"/usr/share/applications/liri-browser.desktop
}
# Additional functions to generate a changelog
changelog() {
cd "${_pkgname}"
git log $1..HEAD --no-merges --format=" * %s"
}
gitref() {
cd "${_pkgname}"
git rev-parse HEAD
}
|