diff options
author | Erich Eckner <git@eckner.net> | 2018-07-09 09:32:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-09 09:32:14 +0200 |
commit | 1b9498618608b516491d9d28386796a51d546c29 (patch) | |
tree | 1157deb577f2aa3853228568130830a4fb209a96 | |
parent | f9fb1ca05f1a0ce5c76cbafc000f46e67db3b965 (diff) | |
download | archlinuxewe-1b9498618608b516491d9d28386796a51d546c29.tar.xz |
moc -> moc-nosort
-rw-r--r-- | moc-nosort/PKGBUILD (renamed from moc/PKGBUILD) | 19 | ||||
-rw-r--r-- | moc-nosort/disable-sort.patch (renamed from moc/disable-sort.patch) | 0 | ||||
-rw-r--r-- | moc-nosort/moc-ffmpeg4.patch | 33 |
3 files changed, 45 insertions, 7 deletions
diff --git a/moc/PKGBUILD b/moc-nosort/PKGBUILD index 86103ad19..125eb9c41 100644 --- a/moc/PKGBUILD +++ b/moc-nosort/PKGBUILD @@ -2,8 +2,10 @@ # Maintainer: Erich Eckner <arch at eckner dot net> # Contributor: Eric Bélanger <eric@archlinux.org> -pkgname=moc +pkgname=moc-nosort pkgver=2.5.2 +provides=("moc=${pkgver}") +conflicts=('moc') pkgrel=1 epoch=1 pkgdesc="An ncurses console audio player designed to be powerful and easy to use" @@ -19,20 +21,23 @@ optdepends=('speex: for using the speex 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}-${pkgver}.tar.bz2{,.sig} - disable-sort.patch) +source=(http://ftp.daper.net/pub/soft/moc/stable/${pkgname%-nosort}-${pkgver}.tar.bz2{,.sig} + disable-sort.patch + moc-ffmpeg4.patch) sha512sums=('992d06809fb52e58dcee63704bde05795b99edbac46edd8381f314c564490013b18e1853926f419c2c3c7f1bb68ff35e97048de03ace3232b800cf4b3b7dbe0f' 'SKIP' - '7a760eebf22d84f1ac21e3b429c10f7fb77bc8c7642adb57c57c1b6dfb9d2fa464398475778813a803738ec7a6ffee2c3da857bd36a6b89eaf3345ae419dc7ab') + '7a760eebf22d84f1ac21e3b429c10f7fb77bc8c7642adb57c57c1b6dfb9d2fa464398475778813a803738ec7a6ffee2c3da857bd36a6b89eaf3345ae419dc7ab' + '270308ad7d2b300553a6cc0ddb9ef90441e32a20a3405ebcb710ff8f0a2cc036e0b59d01bf34f49144f22de5d24e25f9a66dd452a76b6a8994f2d8d75cd9795e') validpgpkeys=('59359B80406D9E73E80599BEF3121E4F2885A7AA') prepare() { - cd ${pkgname}-${pkgver} + cd "${pkgname%-nosort}-${pkgver}" + patch -p0 -i ../moc-ffmpeg4.patch # Fix build with ffmpeg 4 patch -p0 -i ../disable-sort.patch } build() { - cd ${pkgname}-${pkgver} + cd "${pkgname%-nosort}-${pkgver}" ./configure --prefix=/usr --without-rcc \ --with-oss --with-alsa --with-jack --with-aac --with-mp3 \ --with-musepack --with-vorbis --with-flac --with-wavpack \ @@ -42,6 +47,6 @@ build() { } package() { - cd ${pkgname}-${pkgver} + cd "${pkgname%-nosort}-${pkgver}" make DESTDIR="${pkgdir}" install } diff --git a/moc/disable-sort.patch b/moc-nosort/disable-sort.patch index 2d7dfd29a..2d7dfd29a 100644 --- a/moc/disable-sort.patch +++ b/moc-nosort/disable-sort.patch diff --git a/moc-nosort/moc-ffmpeg4.patch b/moc-nosort/moc-ffmpeg4.patch new file mode 100644 index 000000000..c1e43a7c2 --- /dev/null +++ b/moc-nosort/moc-ffmpeg4.patch @@ -0,0 +1,33 @@ +Index: decoder_plugins/ffmpeg/ffmpeg.c +=================================================================== +--- decoder_plugins/ffmpeg/ffmpeg.c (revisión: 2963) ++++ decoder_plugins/ffmpeg/ffmpeg.c (copia de trabajo) +@@ -697,7 +697,7 @@ + * FFmpeg/LibAV in use. For some versions this will be caught in + * *_find_stream_info() above and misreported as an unfound codec + * parameters error. */ +- if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) { ++ if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) { + decoder_error (&data->error, ERROR_FATAL, 0, + "The codec is experimental and may damage MOC: %s", + data->codec->name); +@@ -705,8 +705,8 @@ + } + + set_downmixing (data); +- if (data->codec->capabilities & CODEC_CAP_TRUNCATED) +- data->enc->flags |= CODEC_FLAG_TRUNCATED; ++ if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ data->enc->flags |= AV_CODEC_FLAG_TRUNCATED; + + if (avcodec_open2 (data->enc, data->codec, NULL) < 0) + { +@@ -725,7 +725,7 @@ + + data->sample_width = sfmt_Bps (data->fmt); + +- if (data->codec->capabilities & CODEC_CAP_DELAY) ++ if (data->codec->capabilities & AV_CODEC_CAP_DELAY) + data->delay = true; + data->seek_broken = is_seek_broken (data); + data->timing_broken = is_timing_broken (data->ic); |