[arch-commits] Commit in moc/trunk (PKGBUILD moc-https.patch)
Felix Yan
felixonmars at archlinux.org
Sun Mar 8 09:46:21 UTC 2020
Date: Sunday, March 8, 2020 @ 09:46:21
Author: felixonmars
Revision: 377132
upgpkg: moc 1:2.5.2-3
fix https in playlist (FS#65098)
Added:
moc/trunk/moc-https.patch
Modified:
moc/trunk/PKGBUILD
-----------------+
PKGBUILD | 9 ++++++---
moc-https.patch | 10 ++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-08 09:43:11 UTC (rev 377131)
+++ PKGBUILD 2020-03-08 09:46:21 UTC (rev 377132)
@@ -2,7 +2,7 @@
pkgname=moc
pkgver=2.5.2
-pkgrel=2
+pkgrel=3
epoch=1
pkgdesc="An ncurses console audio player designed to be powerful and easy to use"
arch=('x86_64')
@@ -18,15 +18,18 @@
'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}
- moc-ffmpeg4.patch)
+ moc-ffmpeg4.patch
+ moc-https.patch)
sha1sums=('9d27a929b63099416263471c16367997c0ae6dba'
'SKIP'
- '007a0580ac754e1c318a0d0b6f0d403883797eaf')
+ '007a0580ac754e1c318a0d0b6f0d403883797eaf'
+ 'e3362ddd41126e2be874cd372a053fdaccf0f616')
validpgpkeys=('59359B80406D9E73E80599BEF3121E4F2885A7AA')
prepare() {
cd $pkgname-$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
}
build() {
Added: moc-https.patch
===================================================================
--- moc-https.patch (rev 0)
+++ moc-https.patch 2020-03-08 09:46:21 UTC (rev 377132)
@@ -0,0 +1,10 @@
+--- files.c.orig
++++ files.c
+@@ -93,6 +93,7 @@
+ inline int is_url (const char *str)
+ {
+ return !strncasecmp (str, "http://", sizeof ("http://") - 1)
++ || !strncasecmp (str, "https://", sizeof ("https://") - 1)
+ || !strncasecmp (str, "ftp://", sizeof ("ftp://") - 1);
+ }
+
More information about the arch-commits
mailing list