blob: e2b66b9be0a3e74d0cdc54969e1feb4bdddacf27 (
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
|
# Maintainer: oi_wtf <brainpower at mailbox dot org>
pkgname=ashuffle
pkgver=2.1.0
pkgrel=1
pkgdesc="Automatic library-wide shuffle for mpd."
url="https://github.com/joshkunz/ashuffle"
arch=(x86_64 i686 armv6h armv7h aarch64)
license=(MIT)
depends=("libmpdclient")
makedepends=("meson")
source=(
"https://github.com/joshkunz/ashuffle/archive/v${pkgver}/ashuffle-${pkgver}.tar.gz"
"tap-14e6.c::https://github.com/zorgnax/libtap/raw/14e6708db5215a657e615171682a1741023c9c0c/tap.c"
"tap-14e6.h::https://github.com/zorgnax/libtap/raw/14e6708db5215a657e615171682a1741023c9c0c/tap.h"
)
sha256sums=(
"f3e4e46832c5e50fd1090eeb749fd2bf43ee62d837a9dbbb494e7ba95fbe115e"
"5952a5c99a273cc630eeb773461e5ee8255b3ddd19a9051f189e0ab1c1b7eaa8"
"063dbe4bbd0c93707b31f536b54c698d30793be3410f428f0647aeb859c267c9"
)
build() {
cd "ashuffle-${pkgver}"
mkdir -p t/libtap
cp -a "$srcdir/tap-14e6.c" t/libtap/tap.c
cp -a "$srcdir/tap-14e6.h" t/libtap/tap.h
arch-meson -Dtests=enabled builddir
ninja -C builddir
}
check() {
cd "ashuffle-${pkgver}"
ninja -C builddir test
}
package() {
cd "ashuffle-${pkgver}"
DESTDIR="${pkgdir}" ninja -C builddir install
install -Dm644 "LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|