summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e64c6140cc3e6e9409a243b97de04f202c365eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Philippe Miron <tuxication@gmail.com>

pkgname=cryptocat
pkgver=3.2.07
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=('3b8c6d1a852f763d12a0b5c4807cf284')
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"
}