summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjun2020-11-28 13:46:32 +0800
committeryjun2020-11-28 13:46:32 +0800
commit9de56f6f5d9c15224024953e76555f52d63106e2 (patch)
tree50c0e19f7a26e0dcd604d0ab5e7a9ef63158aee9
parentbcb4e4fd4d0691c8d4c7a92f42d31b5f67bb48ff (diff)
downloadaur-9de56f6f5d9c15224024953e76555f52d63106e2.tar.gz
added source url
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD25
2 files changed, 8 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fe9eb9e0ac64..f925658263ff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = todesk-bin
pkgdesc = Remote control and team work
pkgver = 1.1.0c
- pkgrel = 1
+ pkgrel = 2
url = https://www.todesk.cn/
arch = x86_64
license = custom
- makedepends = xdg-user-dirs
makedepends = tar
provides = todesk
conflicts = todesk
- source = local://todeskBeta_1.1.0c.deb
+ source = todesk-1.1.0c.deb::https://update.todesk.com/todeskBeta_1.1.0c.deb
sha256sums = 0d93806f7275be5487ed91fe4cfc4deea452a07508d4046a17f8ea7592905735
pkgname = todesk-bin
diff --git a/PKGBUILD b/PKGBUILD
index 597364a79f10..1685a8db1068 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,31 +3,17 @@
pkgname=todesk-bin
_pkgname=${pkgname%-bin}
pkgver=1.1.0c
-_pkgver_ext=Beta
-_pkg_file_name=${_pkgname}${_pkgver_ext}_${pkgver}.deb
-pkgrel=1
+pkgrel=2
pkgdesc="Remote control and team work"
arch=('x86_64')
url="https://www.todesk.cn/"
license=('custom' )
-makedepends=('xdg-user-dirs' 'tar')
+makedepends=('tar')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
-source=("local://${_pkg_file_name}")
+source=("${_pkgname}-${pkgver}.deb::https://update.todesk.com/${_pkgname}Beta_${pkgver}.deb")
sha256sums=('0d93806f7275be5487ed91fe4cfc4deea452a07508d4046a17f8ea7592905735')
-_DOWNLOADS_DIR=`xdg-user-dir DOWNLOAD`
-if [ ! -f ${PWD}/${_pkg_file_name} ]; then
- if [ -f $_DOWNLOADS_DIR/${_pkg_file_name} ]; then
- ln -sfn $_DOWNLOADS_DIR/${_pkg_file_name} ${PWD}
- else
- echo ""
- echo "The package can be downloaded here: "
- echo "Please remember to put a downloaded package ${_pkg_file_name} into the build directory ${PWD} or $_DOWNLOADS_DIR"
- echo ""
- fi
-fi
-
prepare() {
install -dm 755 ${srcdir}/${_pkgname}
@@ -41,8 +27,8 @@ package() {
install -Dm 755 usr/local/bin/${_pkgname} -t ${pkgdir}/usr/bin/
# lib
- find opt/${_pkgname}/lib -type f -exec install -Dm755 {} ${pkgdir}/{} \;
- find opt/${_pkgname}/plugins -type f -exec install -Dm755 {} ${pkgdir}/{} \;
+ find opt/${_pkgname}/lib -type f -exec install -Dm644 {} ${pkgdir}/{} \;
+ find opt/${_pkgname}/plugins -type f -exec install -Dm644 {} ${pkgdir}/{} \;
# font
find opt/${_pkgname}/res -type f -exec install -Dm644 {} ${pkgdir}/{} \;
@@ -60,4 +46,5 @@ package() {
# icon
install -Dm 644 usr/share/pixmaps/${_pkgname}.png -t ${pkgdir}/usr/share/pixmaps
}
+
# vim: set sw=2 ts=2 et: