summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2017-02-21 10:04:21 +0100
committerMichael Straube2017-02-21 10:04:21 +0100
commit95af223acf7eb44c797b69b6fa56a410b8cee3b7 (patch)
tree8c1e7e59c7f6ef0120749ae4a46849492e1d6c69
parent8e1c3cf556e1a9db9c4483ea1c15bde84c4c4ef0 (diff)
downloadaur-95af223acf7eb44c797b69b6fa56a410b8cee3b7.tar.gz
Update to 3.2.08
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD59
2 files changed, 25 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f98370cea82..702f0b56e9c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,17 @@
pkgbase = cryptocat
pkgdesc = Free software with a simple mission: everyone should be able to chat with their friends in privacy
- pkgver = 3.2.07
+ pkgver = 3.2.08
pkgrel = 1
- epoch = 0
url = https://crypto.cat
arch = x86_64
- license = GPL
+ license = GPL3
makedepends = gendesk
makedepends = gnupg
+ depends = glib2
+ depends = fuse2
+ options = !strip
source = https://download.crypto.cat/client/Cryptocat-linux-x64.zip
- md5sums = 3b8c6d1a852f763d12a0b5c4807cf284
+ sha256sums = 3761847a2a4a96c8a706d67705af3d0fab230478dbea4ed652da84a773dfe880
pkgname = cryptocat
diff --git a/PKGBUILD b/PKGBUILD
index 260321278fc..cfc3d002867 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,53 +2,32 @@
# Contributor: Philippe Miron <tuxication@gmail.com>
pkgname=cryptocat
-pkgver=3.2.07
+pkgver=3.2.08
pkgrel=1
-epoch=0
pkgdesc="Free software with a simple mission: everyone should be able to chat with their friends in privacy"
-arch=("x86_64")
+arch=('x86_64')
url="https://crypto.cat"
-license=("GPL")
-groups=()
-depends=()
+license=('GPL3')
+depends=('glib2' 'fuse2')
makedepends=('gendesk' 'gnupg')
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=("https://download.crypto.cat/client/Cryptocat-linux-x64.zip")
-noextract=()
-md5sums=('3b8c6d1a852f763d12a0b5c4807cf284')
-validpgpkeys=()
+options=('!strip')
+source=("https://download.crypto.cat/client/Cryptocat-linux-x64.zip")
+sha256sums=('3761847a2a4a96c8a706d67705af3d0fab230478dbea4ed652da84a773dfe880')
-prepare() {
- unzip $srcdir/Cryptocat.zip -d $pkgname
- cp -R $srcdir/$pkgname/Cryptocat-linux-x64/* $pkgname
- rm -R $srcdir/$pkgname/Cryptocat-linux-x64
-# gpg2 --verify Cryptocat.zip.asc Cryptocat.zip
- gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
-}
+# In order to make the GPG verification work, import the following PGP key
+# FA21CD536312FADF9B5DD804AB266CB76091B1F8 Nadim Kobeissi <nadim@nadim.computer>
-build() {
- msg "The package $pkgname is already compiled."
+prepare() {
+ gpg --verify Cryptocat.AppImage.asc Cryptocat.AppImage
+ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+ bsdtar --to-stdout -xf Cryptocat.AppImage \
+ usr/share/icons/default/64x64/apps/cryptocat.png > cryptocat.png
}
package() {
- # Install the main app
- install -dm755 "$pkgdir/opt/"
- cp -r $pkgname $pkgdir/opt
-
- # desktop file
- install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -Dm644 "$pkgname/logo.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
-
- # Create a symlink to /usr/bin
- install -d "$pkgdir/usr/bin/"
- ln -sf /opt/${pkgname}/Cryptocat "$pkgdir/usr/bin/$pkgname"
- chmod 755 "${pkgdir}/opt/${pkgname}/Cryptocat"
+ install -d "$pkgdir"/usr/{bin,lib/cryptocat}
+ install -Dm755 Cryptocat.AppImage "$pkgdir/usr/lib/cryptocat/Cryptocat.AppImage"
+ install -Dm644 cryptocat.desktop "$pkgdir/usr/share/applications/cryptocat.desktop"
+ install -Dm644 cryptocat.png "$pkgdir/usr/share/pixmaps/cryptocat.png"
+ ln -s /usr/lib/cryptocat/Cryptocat.AppImage "$pkgdir/usr/bin/cryptocat"
}