summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoan Figueras2020-07-12 12:23:38 +0200
committerJoan Figueras2020-07-12 12:23:38 +0200
commitfa70b53a27179bad09195978a42101e94f7548c6 (patch)
treea89f9ab5550fc4f2df55672f6af3a781f72cec73
parentaacaffd44a591b7004c49ba459f438565ae28b2d (diff)
downloadaur-fa70b53a2717.tar.gz
Changed disable internal updater strategy (thanks ilya-fedin). Changed some coding style and removed pkgrel from icons
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD89
2 files changed, 45 insertions, 62 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f1032d2b0fdc..d3650fbc6b85 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = kotatogram-desktop-bin
pkgdesc = Experimental Telegram Desktop fork with option to select custom fonts. - Static binaries
pkgver = 1.3.8
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/kotatogram/kotatogram-desktop
arch = x86_64
license = GPL3
@@ -12,15 +12,15 @@ pkgbase = kotatogram-desktop-bin
conflicts = kotatogram-desktop
conflicts = kotatogram-desktop-dynamic-bin
options = !strip
- source = kotatogram-desktop-bin-1.3.8-1::https://github.com/kotatogram/kotatogram-desktop/releases/download/k1.3.8/1.3.8.tar.xz
+ source = kotatogram-desktop-bin-1.3.8-2::https://github.com/kotatogram/kotatogram-desktop/releases/download/k1.3.8/1.3.8.tar.xz
source = https://raw.githubusercontent.com/kotatogram/kotatogram-desktop/k1.3.8/lib/xdg/kotatogramdesktop.desktop
- source = icon16-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon16.png
- source = icon32-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon32.png
- source = icon48-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon48.png
- source = icon64-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon64.png
- source = icon128-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon128.png
- source = icon256-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon256.png
- source = icon512-1.3.8-1.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon512.png
+ source = icon16-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon16.png
+ source = icon32-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon32.png
+ source = icon48-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon48.png
+ source = icon64-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon64.png
+ source = icon128-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon128.png
+ source = icon256-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon256.png
+ source = icon512-1.3.8.png::https://github.com/kotatogram/kotatogram-desktop/raw/k1.3.8/Telegram/Resources/art/icon512.png
sha512sums = fac74322ee437fab5a4e14d9ea02206e69c7b027d3ee835e6ad95c1d976db0fbd0b734c67a10bed807277160a1f968d9caf40c2db66bcbba612f8c8f2282b3e1
sha512sums = e9f0d9174f43cf30b8dc982ce898f5330152cf4d8da03f6e99bd409f6caee7a93f05121d9acdac4ead0c0ef3dfc82ba597b670deac43fe17d08dc221e01e463a
sha512sums = 89bb399142ec968a1c9d96e7e3639036aa8d70968c89c6d2b77def5ea6cbb0d88de8b3c8bb10f457600cdd4c7926d7f8ff9907f511aaaac832b218c9353c4b50
diff --git a/PKGBUILD b/PKGBUILD
index ab968d79817a..3ef7f2913ef7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,40 +4,30 @@
pkgname=kotatogram-desktop-bin
pkgdesc="Experimental Telegram Desktop fork with option to select custom fonts. - Static binaries"
pkgver=1.3.8
-pkgrel=1
+pkgrel=2
url="https://github.com/kotatogram/kotatogram-desktop"
arch=(x86_64)
license=(GPL3)
options=("!strip")
-depends=(
- fuse
-)
+depends=(fuse)
-optdepends=(
- 'xdg-desktop-portal: for native file dialogs, do not forget to install one of backends'
- 'xdg-utils: for automatic opening of URLs, files and directories in proper applications'
-)
+optdepends=('xdg-desktop-portal: for native file dialogs, do not forget to install one of backends'
+ 'xdg-utils: for automatic opening of URLs, files and directories in proper applications')
conflicts=('kotatogram-desktop' 'kotatogram-desktop-dynamic-bin')
provides=('kotatogram-desktop')
-# Sources
-source=(
- $pkgname-$pkgver-$pkgrel::$url/releases/download/k$pkgver/$pkgver.tar.xz
+source=($pkgname-$pkgver-$pkgrel::$url/releases/download/k$pkgver/$pkgver.tar.xz
+ https://raw.githubusercontent.com/kotatogram/kotatogram-desktop/k$pkgver/lib/xdg/kotatogramdesktop.desktop
+ icon16-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon16.png
+ icon32-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon32.png
+ icon48-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon48.png
+ icon64-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon64.png
+ icon128-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon128.png
+ icon256-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon256.png
+ icon512-$pkgver.png::$url/raw/k$pkgver/Telegram/Resources/art/icon512.png)
- https://raw.githubusercontent.com/kotatogram/kotatogram-desktop/k$pkgver/lib/xdg/kotatogramdesktop.desktop
-
- icon16-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon16.png
- icon32-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon32.png
- icon48-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon48.png
- icon64-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon64.png
- icon128-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon128.png
- icon256-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon256.png
- icon512-$pkgver-$pkgrel.png::$url/raw/k$pkgver/Telegram/Resources/art/icon512.png
-
-)
-# Checksums automatically set in CI, see: /.gitlab-ci.yml
sha512sums=('fac74322ee437fab5a4e14d9ea02206e69c7b027d3ee835e6ad95c1d976db0fbd0b734c67a10bed807277160a1f968d9caf40c2db66bcbba612f8c8f2282b3e1'
'e9f0d9174f43cf30b8dc982ce898f5330152cf4d8da03f6e99bd409f6caee7a93f05121d9acdac4ead0c0ef3dfc82ba597b670deac43fe17d08dc221e01e463a'
'89bb399142ec968a1c9d96e7e3639036aa8d70968c89c6d2b77def5ea6cbb0d88de8b3c8bb10f457600cdd4c7926d7f8ff9907f511aaaac832b218c9353c4b50'
@@ -48,35 +38,28 @@ sha512sums=('fac74322ee437fab5a4e14d9ea02206e69c7b027d3ee835e6ad95c1d976db0fbd0b
'b103f3a07c82e7d47602b031c190d902b60b49c0c0750d1e51255cc403286e04b037c66ff0804ce3eb5a7d94fdb2f8219947609f71cc716d44c41d40f4c35344'
'baba4ba1cb6064fba20b7b85ae9074666e600e2fdbee3626db94a2218ab4e31980a503f09fb043ce17c9e17d57296b479202ae386cbcc5e44a2397aad015b857')
-prepare(){
-
- echo "Disable build in updater"
- sed -i 's/Exec=kotatogram-desktop/Exec=kotatogram-desktop -externalupdater/' "$srcdir/kotatogramdesktop.desktop"
- echo "Done"
-
-}
-
package() {
-
- cd "$srcdir/"
-
- # Creating needed directories
- install -dm755 "$pkgdir/usr/bin"
- install -dm755 "$pkgdir/usr/share/pixmaps/"
- install -dm755 "$pkgdir/usr/share/applications/"
-
- # Program
- install -Dm755 "$srcdir/Kotatogram/Kotatogram" "$pkgdir/usr/bin/kotatogram-desktop"
-
- # Desktop launcher
- install -Dm644 "$srcdir/icon256-$pkgver-$pkgrel.png" "$pkgdir/usr/share/pixmaps/kotatogram.png"
- install -Dm644 "$srcdir/kotatogramdesktop.desktop" "$pkgdir/usr/share/applications/kotatogramdesktop.desktop"
-
- # Icons
- local icon_size icon_dir
- for icon_size in 16 32 48 64 128 256 512; do
- icon_dir="$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
- install -d "$icon_dir"
- install -m644 "$srcdir/icon${icon_size}-$pkgver-$pkgrel.png" "$icon_dir/kotatogram.png"
- done
+ # Creating needed directories
+ install -dm755 "$pkgdir/usr/bin"
+ install -dm755 "$pkgdir/usr/share/pixmaps/"
+ install -dm755 "$pkgdir/usr/share/applications/"
+ install -dm755 "$pkgdir/etc/kotatogram-desktop"
+
+ # Disable build in updater
+ echo "/usr/bin/kotatogram-desktop" > "$pkgdir/etc/kotatogram-desktop/externalupdater"
+
+ # Program
+ install -Dm755 "$srcdir/Kotatogram/Kotatogram" "$pkgdir/usr/bin/kotatogram-desktop"
+
+ # Desktop launcher
+ install -Dm644 "$srcdir/icon256-$pkgver.png" "$pkgdir/usr/share/pixmaps/kotatogram.png"
+ install -Dm644 "$srcdir/kotatogramdesktop.desktop" "$pkgdir/usr/share/applications/kotatogramdesktop.desktop"
+
+ # Icons
+ local icon_size icon_dir
+ for icon_size in 16 32 48 64 128 256 512; do
+ icon_dir="$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
+ install -d "$icon_dir"
+ install -m644 "$srcdir/icon${icon_size}-$pkgver.png" "$icon_dir/kotatogram.png"
+ done
}