blob: 40e74df52d36129ac8ada57a92d81879750fedfc (
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
|
# Maintainer: Otreblan <otreblain@gmail.com>
pkgname=giara-git
pkgver=1.0.1.r0.g59195cf
pkgrel=1
epoch=
pkgdesc="GTK app for Reddit"
arch=('any')
url="https://gitlab.gnome.org/World/giara"
license=('GPL3')
groups=()
depends=(
'gtk4'
'gtksourceview5'
'libadwaita'
'python-beautifulsoup4'
'python-dateutil'
'python-gobject'
'python-mistune'
'python-pillow'
'python-praw'
'python-requests'
)
makedepends=('meson' 'git' 'gobject-introspection' 'blueprint-compiler')
checkdepends=()
optdepends=('ffmpeg: For video')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" redditgtk)
replaces=("redditgtk")
source=("$pkgname::git+$url.git")
sha256sums=("SKIP")
prepare() {
cd "$srcdir/$pkgname/${pkgname%-git}"
local _pver="$(python --version | sed "s/Python \(.*\)\..*/\1/")"
local _ddir="/usr/lib/python$_pver/site-packages/${pkgname%-git}/"
# Generate pycache, if you ran giara as root this will conflict
for f in "" -O;
do
python $f -m compileall . --invalidation-mode checked-hash -d "$_ddir"
done
}
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --tags --long 2>/dev/null | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
arch-meson "$pkgname" build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
}
|