blob: dcd320fedacfe596a90e4e40c91c6ab202c43bb6 (
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
74
75
76
77
78
79
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgname=moc-nosort
pkgver=2.5.2
provides=("moc=${pkgver}")
conflicts=('moc')
pkgrel=40
epoch=1
pkgdesc="An ncurses console audio player designed to be powerful and easy to use"
arch=('i686' 'pentium4' 'x86_64')
url="https://moc.daper.net/"
license=('GPL')
_pinned_dependencies=(
'glibc>=2.31'
'libasound.so=2'
'libcurl.so=4'
'libfaad.so=2'
'libFLAC.so=12'
'libid3tag.so=0'
'libjack.so=0'
'libmad=0.15.1b'
'libmagic.so=1'
'libmodplug=0.8.9.0'
'libmpcdec=1:0.1+r475'
'libncursesw.so=6'
'libogg.so=0'
'libsamplerate.so=0'
'libsndfile.so=1'
'libspeex.so=1'
'libtool=2.4.7+4+g1ec8fa28'
'libvorbisfile.so=3'
'libvorbis.so=0'
'libz.so=1'
'taglib=2.0'
'wavpack=5.7.0'
)
depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file' "${_pinned_dependencies[@]}")
makedepends=('speex' 'ffmpeg4.4' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
optdepends=('speex: for using the speex plugin'
'ffmpeg4.4: for using the ffmpeg plugin'
'taglib: for using the musepack plugin'
'libmpcdec: for using the musepack plugin'
'wavpack: for using the wavpack plugin'
'faad2: for using the aac plugin'
'libmodplug: for using the modplug plugin')
source=(http://ftp.daper.net/pub/soft/moc/stable/${pkgname%-nosort}-${pkgver}.tar.bz2{,.sig}
disable-sort.patch
moc-ffmpeg4.patch
moc-https.patch)
sha512sums=('992d06809fb52e58dcee63704bde05795b99edbac46edd8381f314c564490013b18e1853926f419c2c3c7f1bb68ff35e97048de03ace3232b800cf4b3b7dbe0f'
'SKIP'
'7a760eebf22d84f1ac21e3b429c10f7fb77bc8c7642adb57c57c1b6dfb9d2fa464398475778813a803738ec7a6ffee2c3da857bd36a6b89eaf3345ae419dc7ab'
'270308ad7d2b300553a6cc0ddb9ef90441e32a20a3405ebcb710ff8f0a2cc036e0b59d01bf34f49144f22de5d24e25f9a66dd452a76b6a8994f2d8d75cd9795e'
'398f5547ad5b64d4291234e0a19c84581571e1ebe531ee76deee2b0a9ab447b410c949adf635186d1c9c19b285ae08c48ff26c2860187d3cb3da218f988b6243')
validpgpkeys=('59359B80406D9E73E80599BEF3121E4F2885A7AA')
prepare() {
cd "${pkgname%-nosort}-${pkgver}"
patch -p0 -i ../moc-ffmpeg4.patch # Fix build with ffmpeg 4
patch -p0 -i ../moc-https.patch # Allow https for urls https://moc.daper.net/node/1872
patch -p0 -i ../disable-sort.patch
}
build() {
cd "${pkgname%-nosort}-${pkgver}"
export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
./configure --prefix=/usr --without-rcc \
--with-oss --with-alsa --with-jack --with-aac --with-mp3 \
--with-musepack --with-vorbis --with-flac --with-wavpack \
--with-sndfile --with-modplug --with-ffmpeg --with-speex \
--with-samplerate --with-curl --disable-cache --disable-debug
make
}
package() {
cd "${pkgname%-nosort}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|