blob: f68ecccb97572ef72c913d923fb6b791ebdf43c5 (
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: Riedler <dev@riedler.wien>
# Contributor: spider-mario <spidermario@free.fr>
# Contributor: Christoph Zeiler <rabyte*gmail>
pkgname=gbsplay-git
pkgver=0.0.97.1162
pkgrel=1
pkgdesc="A command line application for playing GameBoy sound files (GBS)"
arch=('i686' 'x86_64')
url='https://github.com/mmitch/gbsplay'
license=('GPL')
optdepends=('nas: for NAS sound driver'
'alsa-lib: for ALSA sound driver'
'libpulse: for pulseaudio sound driver'
'sdl2: for SDL sound driver'
'pipewire<1.0.0: for pipewire support'
'vorbis-tools: for gbs2ogg'
'zlib: for compressed input files')
makedepends=('git')
source=("git+https://github.com/mmitch/gbsplay.git#branch=master"
'do-not-update-database.patch')
sha512sums=('SKIP'
'2de20d227fe5cb17fd29b666fb55438560b6859a2bcccad910a631189a3698f220b29791493b5ab105fcabd92419b04edd220b85a4b5034723a63fe2f4b898ff')
provides=('gbsplay')
conflicts=('gbsplay')
pkgver() {
cd gbsplay
printf "%s.%s" "$(git describe --tags --abbrev=0)" "$(git rev-list --count HEAD)"
}
prepare() {
cd gbsplay
# modifies usage string to print the full path instead of just the filename
sed 's|gbs2ogg.sh|gbs2ogg|g' --in-place contrib/gbs2ogg.sh
# stops mime database from updating
git apply -3 "$srcdir"/do-not-update-database.patch
}
build() {
cd gbsplay
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd gbsplay
make DESTDIR="$pkgdir" install
install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/gbsplay/LICENCE
cd contrib
install -Dm755 gbs2ogg.sh "$pkgdir"/usr/bin/gbs2ogg
install -Dm644 gbsplay.bashcompletion "$pkgdir"/etc/bash_completion.d/gbsplay
}
|