summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3da87216f1606fb895eede16a58a55f639cc4bf5 (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
# Contributor: Laurent Laffont <laurent.laffont@gmail.com>


pkgname=pharo-launcher
pkgver=4.0
pkgrel=2
pkgdesc="Pharo Launcher helps you manage your Pharo images"
arch=(i686 x86_64)
source=($pkgname-$pkgver.tar.gz)
url="http://www.pharo-project.org/"
license=('MIT')
makedepends=('gendesk')
depends=('pharo-vm-latest')

source=(
	'http://files.pharo.org/media/logo/icon-lighthouse-128x128.png'
	'https://ci.inria.fr/pharo/view/Launcher/job/Launcher/PHARO=40,VERSION=stable,VM=vm,label=linux/49/artifact/PharoLauncher-user-stable-2015.04.20.zip'
)

md5sums=(
	'dec67d08d24433696375a319de029f34'
	'b1c4b91c000c6fe6aa5fa43c00288e58')

prepare() {
	gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
}


package() {
	cd $srcdir/

	mkdir -p $pkgdir/usr/share/pharo-launcher/
	mkdir -p $pkgdir/usr/bin/
	mkdir -p $pkgdir/usr/share/pixmaps/

	cp -f $srcdir/PharoLauncher.* $pkgdir/usr/share/pharo-launcher/
	chgrp users $pkgdir/usr/share/pharo-launcher/PharoLauncher.changes
	chmod 775 $pkgdir/usr/share/pharo-launcher/PharoLauncher.changes

	echo "/usr/bin/pharo /usr/share/pharo-launcher/PharoLauncher.image" > $pkgdir/usr/bin/pharo-launcher
	chmod +x $pkgdir/usr/bin/pharo-launcher

	cp $srcdir/icon-lighthouse-128x128.png	$pkgdir/usr/share/pixmaps/$pkgname.png
	install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -D -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}