blob: f38c5b3ecc4f4345751a28ebbe8bc53e2c785523 (
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
|
# Maintainer: Eduard Toloza <https://edu4rdshl.dev>
# PKGBUILD taken and modified from https://aur.archlinux.org/packages/decibels
_pkgname=decibels
pkgname=decibels-git
pkgver=r235.a50297a
pkgrel=1
pkgdesc="Play audio files"
arch=('x86_64')
url="https://gitlab.gnome.org/GNOME/Incubator/decibels"
license=(GPL-3.0)
depends=(
'gjs'
'gst-plugins-bad-libs'
'gst-plugins-base'
'gst-plugins-good'
'gtk4'
'libadwaita'
)
makedepends=(
'git'
'gobject-introspection'
'meson'
'typescript'
'blueprint-compiler'
)
checkdepends=(
'appstream-glib'
)
source=("git+https://gitlab.gnome.org/GNOME/Incubator/${_pkgname}.git"
'git+https://gitlab.gnome.org/BrainBlasted/gi-typescript-definitions.git')
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd ${_pkgname}
git submodule init
git config submodule.gi-types.url "$srcdir/gi-typescript-definitions"
git -c protocol.file.allow=always submodule update
# Fix build:
sed -i "s/tsc, '--outDir'/tsc, '--project', files('..\\/tsconfig.json'), '--outDir'/g" src/meson.build
# Replace service exec with `decibels`
sed -i "s/Exec=@application_id@/Exec=${_pkgname}/g" data/com.vixalien.decibels.service.in
}
build() {
arch-meson ${_pkgname} build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
cd ${_pkgname}
install -Dm644 LICENCE -t "$pkgdir/usr/share/licenses/${_pkgname}/"
ln -s "/usr/bin/com.vixalien.decibels" "$pkgdir/usr/bin/${_pkgname}"
}
|