summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfox.cpp2018-06-10 20:15:12 +0000
committerfox.cpp2018-06-10 20:15:12 +0000
commit03513a6bce4e08d93f0e2a8a7fe2664f8b2a8969 (patch)
treecbf37a995b4f11a960c40a341afdda6e2f8faffa
parent54a75a2093953ebfc545f8d6de505ee142f7daa9 (diff)
downloadaur-03513a6bce4e08d93f0e2a8a7fe2664f8b2a8969.tar.gz
Update PKGBUILD to use make install
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD21
2 files changed, 6 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 08b7753da2a..51d6fb968ac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = kepka-git
pkgdesc = Unofficial Telegram Desktop messaging app
- pkgver = r3355.7debac66
+ pkgver = r3407.93d2fd30
pkgrel = 1
url = https://github.com/procxx/kepka
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index f1b24d67272..3bb7fb67e22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Maks Mazurov <foxcpp at yandex dot ru>
# Based on https://github.com/procxx/kepka/blob/dev/kepka.spec.
pkgname=kepka-git
-pkgver=r3355.7debac66
+pkgver=r3407.93d2fd30
pkgrel=1
pkgdesc='Unofficial Telegram Desktop messaging app'
arch=('x86_64')
@@ -26,7 +26,7 @@ build() {
cd "$srcdir/$pkgname"
# Out-of-source build is required.
- mkdir build
+ mkdir -p build
cd build
cmake .. \
@@ -37,21 +37,10 @@ build() {
}
package() {
- install -dm755 "$pkgdir/usr/bin"
- install -m755 "$srcdir/$pkgname/build/Telegram/Telegram" "$pkgdir/usr/bin/kepka"
+ cd "$srcdir/$pkgname/build"
- install -d "$pkgdir/usr/share/applications"
- install -m644 "$srcdir/$pkgname/lib/xdg/kepka.desktop" "$pkgdir/usr/share/applications/kepka.desktop"
+ make DESTDIR="$pkgdir" install
# I don't want to add conflicts=('telegram-desktop') thus I will not install tg.protocol.
- #install -d "$pkgdir/usr/share/kservices5"
- #install -m644 "$srcdir/$pkgname/lib/xdg/tg.protocol" "$pkgdir/usr/share/kservices5/tg.protocol"
-
- 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/$pkgname/Telegram/Resources/art/icon${icon_size}.png" "$icon_dir/kepka.png"
- done
+ rm -f "$pkgdir/usr/share/kservices5/tg.protocol"
}