summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPromiSe####2020-10-18 22:02:15 +0300
committerPromiSe####2020-10-18 22:02:15 +0300
commit3ea21f23c8efa49d431fc70f96a3208bef66fc5d (patch)
treef11a3223235c2ee85a381d3ec9165986452f543f
parent28240ce9f0b4b190c80d3ba57561c5bf652d7b88 (diff)
downloadaur-3ea21f23c8efa49d431fc70f96a3208bef66fc5d.tar.gz
Префикс
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD23
-rw-r--r--chatrullete.desktop2
3 files changed, 22 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ff1e0f867852..6083e6b50d61 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = chatrullete-plus
pkgdesc = ChatRullete (Plus)
pkgver = 0.0.2
- pkgrel = 7
+ pkgrel = 8
url = https://github.com/chatrullete-plus
arch = x86_64
license = custom
@@ -14,7 +14,7 @@ pkgbase = chatrullete-plus
depends = libegl
depends = libgles
optdepends = gnome-keyring
- source = chatrullete-0.0.2-7.tar.gz::https://github.com/vicimpa/chatrullete-plus/releases/download/0.0.1/ChatRullete-linux-0.0.1.tar.gz
+ source = chatrullete-0.0.2-8.tar.gz::https://github.com/vicimpa/chatrullete-plus/releases/download/0.0.1/ChatRullete-linux-0.0.1.tar.gz
sha256sums = a166184a809fe48df21d66371b005e2bd9017ed54e8c86ac0734b56728d7d29b
pkgname = chatrullete-plus
diff --git a/PKGBUILD b/PKGBUILD
index 39a36c7b327c..9ea42ee4de43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=chatrullete-plus
pkgver=0.0.2
-pkgrel=7
+pkgrel=8
pkgdesc="ChatRullete (Plus)"
arch=('x86_64')
url="https://github.com/chatrullete-plus"
@@ -22,8 +22,6 @@ package() {
mv "${srcdir}/"* "${pkgdir}/usr/lib/chatrullete"
mv "${pkgdir}/usr/lib/chatrullete/ChatRullete" "${pkgdir}/usr/lib/chatrullete/chatrullete"
- # Create symlink to executable
- ln -s "${pkgdir}/usr/lib/chatrullete/chatrullete" "${pkgdir}/usr/bin/chatrullete"
# Copy resources
cp "${startdir}/chatrullete.desktop" "${pkgdir}/usr/share/applications"
@@ -31,5 +29,22 @@ package() {
# Permission fix
chmod +x "${pkgdir}/usr/lib/chatrullete/chatrullete"
- chmod +x "${pkgdir}/usr/bin/chatrullete"
+}
+
+post_install() {
+ echo "Hello!"
+
+ # Create symlink to executable
+ ln -s "/usr/lib/chatrullete/chatrullete" "/usr/bin/chatrullete"
+
+ # Permission fix
+ chmod +x "/usr/bin/chatrullete"
+}
+
+post_remove() {
+ echo "Good by!"
+
+ if [ -f "/usr/bin/chatrullete" ]; then
+ rm "/usr/bin/chatrullete"
+ fi
} \ No newline at end of file
diff --git a/chatrullete.desktop b/chatrullete.desktop
index 035a0bc0d455..954e92cc1d5d 100644
--- a/chatrullete.desktop
+++ b/chatrullete.desktop
@@ -16,7 +16,7 @@ Comment=Chatrullete client for Linux
Path=/usr/lib/chatrullete
# Исполняемый файл приложения, возможно с аргументами.
-Exec=/usr/bin/chatrullete
+Exec=/usr/lib/chatrullete/chatrullete
# Имя значка, который будет использоваться для отображения этого ярлыка.
Icon=chatrullete