summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkXuan2021-08-19 01:53:14 +0800
committerkXuan2021-08-19 02:09:45 +0800
commit27f085a2055ff4eacf4b1546d5d66011d8c7e1c3 (patch)
tree2b9726a853ebf6f23d8c5d11b2c55adbab6db99c /PKGBUILD
parentfe2c492664ef052c69d600852711bb974f064ab8 (diff)
downloadaur-27f085a2055ff4eacf4b1546d5d66011d8c7e1c3.tar.gz
fix failed to play SQ music (.flac file)
Signed-off-by: kXuan <kxuanobj@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index baa907067f0..dc3ae741ec9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=netease-cloud-music
pkgver=1.2.1
_pkgdate=20190428
-pkgrel=4
+pkgrel=5
pkgdesc="Netease Cloud Music, converted from .deb package"
arch=("x86_64")
url="https://music.163.com/"
@@ -13,16 +13,27 @@ depends=('gtk2' 'gtk3' 'vlc')
source=(
"https://d1.music.126.net/dmusic/netease-cloud-music_${pkgver}_amd64_ubuntu_${_pkgdate}.deb"
"https://music.163.com/html/web2/service.html"
+ "patch.c"
"exclude.list"
+ "netease-cloud-music.bash"
)
sha256sums=('1ee9f02842e6c2c8c79c48b2e932074f9c213a8eb4238e5e63f20438562fecbb'
'cf307fee4be224223ed8cf5af5e8708960683564cd05c53108fa3c382c029a0e'
- 'SKIP')
+ '56ca2bef65508632b2cff48289a34082c6a780743f34eebfb9746f5480ee2015'
+ '0c470e76741c549e5530b2e57d57281eaf198fd56ca3590f664154365b744cf9'
+ 'b11bd6ab4abcc375850668f54a4912948875ad9f9b93cfc24f89de16ec1e8ea7')
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
+build() {
+ cd ${srcdir}
+ cc -O2 -fPIC -shared -I /usr/include/vlc/plugins/ -o libnetease-patch.so patch.c
+}
+
package() {
cd ${srcdir}
tar -xf data.tar.xz -C ${pkgdir} --exclude-from=exclude.list
install -D -m644 service.html ${pkgdir}/usr/share/licenses/$pkgname/license.html
+ install -D -m755 libnetease-patch.so ${pkgdir}/opt/netease/netease-cloud-music/libnetease-patch.so
+ install -D -m755 netease-cloud-music.bash ${pkgdir}/opt/netease/netease-cloud-music/netease-cloud-music.bash
}