makedeb
Patched official Netease Cloud Music, re-ported from AUR
Click here to go back to the commit logs for netease-cloud-music-patched.
Hash: 752043162d3246c9fdf1713e607487559018f538
Message: libcue is no longer needed
Signed-off-by: Peter Cai <peter@typeblog.net>
diff --git a/.SRCINFO b/.SRCINFO
index fddc42c..35d6f0e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = netease-cloud-music
pkgdesc = Netease Cloud Music, converted from .deb package
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = http://music.163.com/
arch = x86_64
license = custom
@@ -15,13 +15,10 @@ pkgbase = netease-cloud-music
depends = gst-plugins-base
depends = gst-plugins-good
depends = gst-plugins-ugly
- noextract = libcue1_1.4.0-1_amd64.deb
source = http://s1.music.126.net/download/pc/netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb
- source = http://archive.ubuntu.com/ubuntu/pool/universe/libc/libcue/libcue1_1.4.0-1_amd64.deb
source = http://music.163.com/html/web2/service.html
source = netease-cloud-music
md5sums = c1430b695eff22294ab3b84205105cdf
- md5sums = 51920df6edb60d9ef5e4e9f3ae3be0d6
md5sums = 2f06d90c7b3362a01c287ec7b6a40f27
md5sums = 31a25ac517facc48762a6a9378a66f58
diff --git a/PKGBUILD b/PKGBUILD
index b912d19..18ba496 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ _distro="ubuntu16.04"
pkgname=netease-cloud-music
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Netease Cloud Music, converted from .deb package"
arch=("x86_64")
url="http://music.163.com/"
@@ -17,27 +17,17 @@ depends=(
)
source=(
"http://s1.music.126.net/download/pc/${pkgname}_${pkgver/_/-}_amd64_${_distro}.deb"
- "http://archive.ubuntu.com/ubuntu/pool/universe/libc/libcue/libcue1_1.4.0-1_amd64.deb"
"http://music.163.com/html/web2/service.html"
"netease-cloud-music"
)
-noextract=(
- "libcue1_1.4.0-1_amd64.deb"
-)
md5sums=('c1430b695eff22294ab3b84205105cdf'
- '51920df6edb60d9ef5e4e9f3ae3be0d6'
'2f06d90c7b3362a01c287ec7b6a40f27'
'31a25ac517facc48762a6a9378a66f58')
-prepare() {
- (mkdir -p libcue && cd libcue && ar xf ../libcue1_1.4.0-1_amd64.deb && tar xf data.tar.gz)
-}
-
package() {
cd ${srcdir}
tar -xvf data.tar.xz -C ${pkgdir}
chmod +x ${pkgdir}/usr/lib/netease-cloud-music/libcef.so
install -D -m644 service.html ${pkgdir}/usr/share/licenses/$pkgname/license.html
- install -m755 libcue/usr/lib/libcue.so.1.0.4 ${pkgdir}/usr/lib/netease-cloud-music/libcue.so.1
install -m755 netease-cloud-music ${pkgdir}/usr/bin/netease-cloud-music
}