summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e13db883b08932119d13e780f32f236fa57d20fa (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
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
pkgname=alchemy-git
pkgver=r597.1a4ac99
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Nonorthodox painting software exploring and experimenting with alternative ways of drawing"
url="http://al.chemy.org/"
license=('GPL')
conflicts=('alchemy')
depends=('sh' 'java-environment=8' 'hicolor-icon-theme' 'libxrender' 'libxcomposite' 'libxtst' 'libxml2')
makedepends=('git' 'apache-ant' 'imagemagick')
source=("${pkgname}::git+https://github.com/karldd/Alchemy.git"
	"alchemy.desktop"
	)
md5sums=('SKIP'
         'c7cffede4dda0acd94aa94deec037720')

pkgver() {
  cd ${pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
	cd ${pkgname}
	ant -Dnb.internal.action.name=build jar
}

package() {
	cd ${pkgname}
	chmod -R o+r dist/*
	install -dm755 ${pkgdir}/opt/alchemy
        cp -r -t ${pkgdir}/opt/alchemy dist/Alchemy/*
	install -dm755 ${pkgdir}/usr/bin
	echo -e "#!/bin/sh\nexec /opt/alchemy/Alchemy" > ${pkgdir}/usr/bin/alchemy
	echo -e "#!/bin/sh\nexec /opt/alchemy/AlchemyOpenGL" > ${pkgdir}/usr/bin/alchemy-opengl
	chmod +x ${pkgdir}/usr/bin/*
	install -dm755 ${pkgdir}/usr/share/doc/alchemy
	convert res/Alchemy.ico alchemy.png
	install -Dm644 "alchemy-0.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/alchemy.png"
	install -Dm644 "alchemy-0.png" "${pkgdir}/usr/share/pixmaps/alchemy.png"
	install -Dm644 "alchemy-1.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/alchemy.png"
	install -Dm644 "alchemy-2.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/alchemy.png"
	install -Dm644 "alchemy-3.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/alchemy.png"
	install -Dm644 "alchemy-4.png" "${pkgdir}/usr/share/icons/hicolor/24x24/apps/alchemy.png"
	install -Dm644 "alchemy-5.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/alchemy.png"
	install -Dm644 "../alchemy.desktop" "${pkgdir}/usr/share/applications/alchemy.desktop"
}