summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilippe Miron2016-07-20 10:43:31 -0400
committerPhilippe Miron2016-07-20 11:03:03 -0400
commit1deb562f454ca5fc52999c4370d240fd57b5489e (patch)
tree784ec5c81f2ab59d171b5bd8e3e8f2b30f646605 /PKGBUILD
downloadaur-1deb562f454ca5fc52999c4370d240fd57b5489e.tar.gz
Cryptocat: encrypted chat software
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..73c487e48bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Philippe Miron <tuxication@gmail.com>
+
+pkgname=cryptocat
+pkgver=3.2.01
+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")
+url="https://crypto.cat"
+license=("GPL")
+groups=()
+depends=()
+makedepends=('gendesk' 'gnupg')
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://download.crypto.cat/client/Cryptocat-linux-x64.zip")
+noextract=()
+md5sums=('2180cd4fb02df31b2da6764f2c3e36b5')
+validpgpkeys=()
+
+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"
+}
+
+build() {
+ msg "The package $pkgname is already compiled."
+}
+
+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"
+}