blob: d42abd660643ae50532a9f652d3ec9802ede86c7 (
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
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=benben
pkgdesc='Multi-format, fast and efficient command line audio player and audio converter'
pkgver=0.6.2
pkgrel=1
arch=(x86_64)
license=(AGPL-3.0-or-later)
depends=(libsidplayfp slang libxmp wavpack libvorbis opus mpg123 libpulse libao portaudio)
makedepends=(ruby crystal fossil shards tcl python-docutils texinfo)
url=https://chiselapp.com/user/MistressRemilia/repository/benben
source=("fossil+$url#tag=v$pkgver")
b2sums=(SKIP)
export USER=nobody
prepare () {
cd "$pkgname"
shards install --production
ruby configure.rb --prefix=/usr --sharedir=share
}
build () {
cd "$pkgname"
make -C src/audio-formats/lib
# benben
shards build --release --frame-pointers=always -s -p \
-Dpreview_mt -D{yunosynth,haematite,remiaudio}_wd40
# remote-benben
crystal build --release --frame-pointers=always -s -p \
-Dpreview_mt -Dcompile_benben_remote \
-o bin/remote-benben tools/remote-benben/main.cr
# Documentation
rst2man man/benben.1.rst man/benben.1
texi2any --info --no-split -o man/texi/benben.{info,texi}
}
package () {
cd "$pkgname"
install -Dm755 -t "$pkgdir/usr/bin" bin/{remote-,}benben
install -Dm644 -t "$pkgdir/usr/share/man/man1" man/benben.1
install -Dm644 -t "$pkgdir/usr/share/info" man/texi/benben.info
}
|