summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ef8e5d51bfee3a42c3de168906dfecfc341cebe (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
# Maintainer : Sebastian Lau <lauseb644 _at_ gmail .dot. com>
# Contributor: yochananmarqos <yochanan.marqos@gmail.com>
# Contributor: Martin Wimpress <code@flexion.org>
# Contributor: Liganic <liganic-aur@gmx.org>
# Contributor: Bernd Amend <berndamend@web.de>
# Contributor: Holodoc <archlinux@bananapro.de>

pkgname=giteye
pkgver=2.2.0
pkgrel=1
pkgdesc="CollabNet GitEye is a desktop for Git. It works with TeamForge, CloudForge and other Git services."
arch=('x86_64')
url="https://www.collab.net/products/giteye"
license=('custom')
depends=('git' 'java-runtime>=8' 'python')
options=('!strip')
source=("https://www.collab.net/sites/default/files/downloads/GitEye-$pkgver-linux.x86_64.zip"
	"LICENSE"
        "${pkgname}.desktop")
md5sums=('117d6e1e905aea0ec91ce18e155e87a1'
         '78ba2a04c6b766a778681705d40abbb4'
         '0299696f06b199eb9b5735057f503fe9')
noextract=(*.zip) # extract nothing


package() {
    cd "$srcdir"

    msg2 "Extracting GitEye from archive..."
    install -Ddm755 "$pkgdir/opt/$pkgname/"
	install -Ddm755 "$pkgdir/usr/bin/"

    bsdtar -xf "GitEye-$pkgver-linux.$CARCH.zip" -C "$pkgdir/opt/$pkgname/"

	msg2 "Adding GitEye executable to default path..."
	ln -s "/opt/${pkgname}/GitEye" "${pkgdir}/usr/bin/giteye"

    msg2 "Installing LICENSE..."
	if [[ "$CARCH" = "i686" ]]; then
		sed -i 's/64-bit/32-bit/' LICENSE
	fi
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

    msg2 "Installing desktop file and icon..."
    install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
    install -Dm644 "$pkgdir/opt/${pkgname}/icon.xpm" "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
}