diff options
author | PromiSe#### | 2020-10-18 22:02:15 +0300 |
---|---|---|
committer | PromiSe#### | 2020-10-18 22:02:15 +0300 |
commit | 3ea21f23c8efa49d431fc70f96a3208bef66fc5d (patch) | |
tree | f11a3223235c2ee85a381d3ec9165986452f543f | |
parent | 28240ce9f0b4b190c80d3ba57561c5bf652d7b88 (diff) | |
download | aur-3ea21f23c8efa49d431fc70f96a3208bef66fc5d.tar.gz |
Префикс
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | chatrullete.desktop | 2 |
3 files changed, 22 insertions, 7 deletions
@@ -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 @@ -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 |