summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b192463f4c330a69df8863f11f8c68166b42ff3 (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
# Maintainer: Joan Figueras <ffigue at gmail dot com>
# Contributor: Luca Contini <jkd[dot]luca[at]gmail[dot]com>

branch= # master
pkgname=asbru-cm${branch}-git
_pkgname=asbru
_fpkgname=asbru-cm
pkgver=6.0.4.r2.g38d704c
pkgrel=1
arch=('any')
license=('GPL3')
pkgdesc="A free and open-source connection manager. master GIT branch"
url="https://github.com/asbru-cm/asbru-cm"
depends=('perl' 'vte3' 'cairo-perl' 'glib-perl' 'pango-perl' 'perl-socket6' 'perl-expect' 'perl-yaml' 'perl-crypt-cbc' 'perl-crypt-blowfish' 'perl-gtk3' 'perl-net-arp' 'uuid' 'openssh' 'inetutils' 'perl-crypt-rijndael' 'perl-xml-parser' 'libcanberra' 'perl-gtk3-simplelist' 'libwnck3' 'perl-io-stty' 'perl-io-tty')
optdepends=('uucp: Unix-to-Unix Copy' 'rdesktop: RDP connections' 'freerdp: RDP connections' 'openssh: SSH connections' 'mosh: Mobile shell' 'tigervnc: for VNC connections'
	    'perl-x11-guitest: To fit perfectly RDP tabs')
makedepends=('git')
#conflicts=()
source=("git+https://github.com/asbru-cm/asbru-cm.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_fpkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "${_fpkgname}"
	mkdir -p $pkgdir/{opt/${_fpkgname}${branch},usr/share/pixmaps,usr/share/man/man1,usr/share/applications,usr/bin,etc/bash_completion.d}
	cp -rp res utils lib $pkgdir/opt/${_fpkgname}${branch}/
	cp -p res/${_pkgname}_bash_completion $pkgdir/etc/bash_completion.d/${_pkgname}${branch}_bash_completion
	cp res/${_pkgname}-logo-64.png $pkgdir/usr/share/pixmaps/${_fpkgname}${branch}.png
	cp res/${_fpkgname}.desktop $pkgdir/usr/share/applications/${_fpkgname}${branch}.desktop
	gzip -c res/${_fpkgname}.1 > $pkgdir/usr/share/man/man1/${_fpkgname}${branch}.1.gz
	cp -p ${_fpkgname} $pkgdir/opt/${_fpkgname}${branch}/${_fpkgname}${branch}
	chmod 755 $pkgdir/opt/${_fpkgname}${branch}/${_fpkgname}${branch}
	ln -sf /opt/${_fpkgname}${branch}/${_fpkgname}${branch} $pkgdir/usr/bin/${_fpkgname}${branch}
}