summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorweearc2020-01-07 23:32:59 +0800
committerweearc2020-01-07 23:32:59 +0800
commite4dc67d50d052729ba5d0919c67dd54c719bafaa (patch)
treed39a9a308675e701063baa0c31a633255bae93d2
parentf6151f1e286ab9973123bfbcab4d2d3aad8d6fb9 (diff)
downloadaur-tencentvideo.tar.gz
update src info
-rw-r--r--PKGBUILD27
1 files changed, 12 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 59b89a7dd55..a7c42994637 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,18 +35,16 @@ validpgpkeys=()
prepare() {
cd ${srcdir}/
mv opt/$_pkgname opt/tencentvideo
- echo "
- [Desktop Entry]
- Name=tencentvideo
- Name[zh_CN]=$_pkgname
- Exec=/usr/bin/tencentvideo %U
- Terminal=false
- Type=Application
- Icon=TencentVideo
- Comment=
- Comment[zh_CN]=不负好时光
- Categories=AudioVideo;
- " > usr/share/applications/TencentVideo.desktop
+ echo "[Desktop Entry]
+Name=tencentvideo
+Name[zh_CN]=$_pkgname
+Exec=/usr/bin/tencentvideo %U
+Terminal=false
+Type=Application
+Icon=TencentVideo
+Comment=
+Comment[zh_CN]=不负好时光
+Categories=AudioVideo;" > usr/share/applications/TencentVideo.desktop
}
@@ -57,9 +55,8 @@ package() {
install -d ${pkgdir}/usr/share/applications
install -d ${pkgdir}/usr/share/licenses
- echo "
- electron /opt/tencentvideo/app.asar \$@
- " > ${pkgdir}/usr/bin/tencentvideo && chmod a+x ${pkgdir}/usr/bin/tencentvideo
+ echo "#!/bin/bash
+electron /opt/tencentvideo/app.asar \$@" > ${pkgdir}/usr/bin/tencentvideo && chmod a+x ${pkgdir}/usr/bin/tencentvideo
mkdir ${pkgdir}/opt/tencentvideo
install -Dm644 ${srcdir}/opt/tencentvideo/resources/app.asar ${pkgdir}/opt/tencentvideo/app.asar