blob: 5765d0fe03ef9f0b491cd7dcef80b68d8d140c0e (
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
|
# Maintainer: oi_wtf <brainpower at mailbox dot org>
# Contributor: Brett Dutro <brett.dutro@gmail.com>
pkgname=ashuffle-git
pkgver=3.14.0.r0.gf860a9d
pkgrel=1
pkgdesc="Automatic library-wide shuffle for mpd. (git)"
url="https://github.com/joshkunz/ashuffle"
arch=(x86_64 i686 armv6h armv7h aarch64)
license=(MIT)
depends=("libmpdclient" "yaml-cpp")
makedepends=("git" "meson" "cmake")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
"git+https://github.com/joshkunz/${pkgname%-git}.git"
"git+https://github.com/abseil/abseil-cpp.git"
"git+https://github.com/google/googletest.git"
)
sha256sums=(
'SKIP' 'SKIP' 'SKIP'
)
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
cd "${pkgname%-git}"
git submodule init
git config submodule."subprojects/absl".url "${srcdir}/abseil-cpp"
git config submodule."subprojects/googletest".url "${srcdir}/googletest"
git -c protocol.file.allow=always submodule update
}
build() {
cd "ashuffle"
# fix a build failure in tests where -Werror is set
export CXXFLAGS="$CXXFLAGS -Wno-error=unused-variable"
arch-meson \
-Dtests=enabled \
-Dunsupported_use_system_yamlcpp=true \
builddir
ninja -C builddir
}
check() {
cd "ashuffle"
ninja -C builddir test
}
package() {
cd "ashuffle"
DESTDIR="${pkgdir}" ninja -C builddir install
install -Dm644 "LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|