summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorventusliberum2020-10-10 14:27:18 +0800
committerventusliberum2020-10-10 14:27:18 +0800
commit1c31de5b8a92c768c9cc4217b8c508e685716a20 (patch)
tree6a5392507166ebf4ec99100f6ba1820decd66082
parent44d0bae9351a59c6dc1f68be0a6a48adebc82892 (diff)
downloadaur-1c31de5b8a92c768c9cc4217b8c508e685716a20.tar.gz
Update to 2.5.2.1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 13 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 95dfe6933d0c..4902362c9221 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = zy-player-appimage
pkgdesc = 跨平台视频资源播放器, 简洁免费无广告
- pkgver = 2.5.1
+ pkgver = 2.5.2.1
pkgrel = 1
url = http://zyplayer.fun/
arch = x86_64
license = MIT
provides = zy-player
options = !strip
- source = https://github.com/Hunlongyu/ZY-Player/releases/download/v2.5.1/ZY-Player-2.5.1.AppImage
+ source = https://github.com/Hunlongyu/ZY-Player/releases/download/v2.5.2-1/ZY-Player-2.5.2-1.AppImage
source = zy-player.sh
- sha256sums = 0a12cce0a0c72b7d796dd7a28af2b6dd03b2b283330970bc66a8944ba8143ae0
+ sha256sums = cb4c9fbd4c6a8e6d3fd0ea8053593116bd16554fe6ee7e02bcb2683fce4331f7
sha256sums = 3626ced8de95c110129ed9dff1f8ea34243b2430b0b91c737dd7d166658bc1f2
pkgname = zy-player-appimage
diff --git a/PKGBUILD b/PKGBUILD
index bd43bd8f58a4..0f04a5e7bbe1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,8 @@
pkgname=zy-player-appimage
_pkgname=zy-player
-pkgver=2.5.1
+pkgver=2.5.2.1
+_pkgver=$(echo $pkgver | sed 's/\./-/3')
pkgrel=1
pkgdesc="跨平台视频资源播放器, 简洁免费无广告"
arch=("x86_64")
@@ -10,23 +11,24 @@ url="http://zyplayer.fun/"
license=('MIT')
provides=('zy-player')
options=(!strip)
-source=("https://github.com/Hunlongyu/ZY-Player/releases/download/v${pkgver}/ZY-Player-${pkgver}.AppImage"
+source=("https://github.com/Hunlongyu/ZY-Player/releases/download/v${_pkgver}/ZY-Player-${_pkgver}.AppImage"
'zy-player.sh')
-sha256sums=('0a12cce0a0c72b7d796dd7a28af2b6dd03b2b283330970bc66a8944ba8143ae0'
+sha256sums=('cb4c9fbd4c6a8e6d3fd0ea8053593116bd16554fe6ee7e02bcb2683fce4331f7'
'3626ced8de95c110129ed9dff1f8ea34243b2430b0b91c737dd7d166658bc1f2')
-_filename=ZY-Player-${pkgver}.AppImage
+_filename=ZY-Player-${_pkgver}.AppImage
prepare() {
cd "${srcdir}"
chmod +x ${_filename}
./${_filename} --appimage-extract
- sed -i "s,^Exec=AppRun,Exec=/usr/bin/${_pkgname} %U,g" "squashfs-root/zy.desktop"
- sed -i "s,^Icon=zy,Icon=zy-player,g" "squashfs-root/zy.desktop"
- sed -i "s,^StartupWMClass=ZY Player,StartupWMClass=zy,g" "squashfs-root/zy.desktop"
+ sed -i "s|^Exec=AppRun|Exec=/usr/bin/${_pkgname} %U|g;\
+ s|^Icon=zy|Icon=zy-player|g;\
+ s|^StartupWMClass=ZY Player|StartupWMClass=zy|g;\
+ s|^Categories=Development;|Categories=AudioVideo;Player;|g" "squashfs-root/zy.desktop"
}
package() {
- install -Dm755 "${srcdir}/${_filename}" "$pkgdir/opt/appimages/${_pkgname}.AppImage"
+ install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/${_pkgname}.AppImage"
install -Dm755 "${srcdir}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${srcdir}/squashfs-root/zy.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm644 "${srcdir}/squashfs-root/zy.png" "${pkgdir}/usr/share/icons/${_pkgname}.png"