python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / lightzone / template
blobdf82e243314a83f06ffb9c6668bb9c7888caad4e
1 # Template file for 'lightzone'
2 pkgname=lightzone
3 version=4.1.8
4 revision=2
5 wrksrc=LightZone-${version}
6 hostmakedepends="automake git openjdk apache-ant javahelp2 rsync pkg-config"
7 makedepends="libgomp-devel lcms2-devel libX11-devel"
8 depends="virtual?java-runtime javahelp2 liblzma tiff"
9 short_desc="Professional-level digital darkroom and photo editor"
10 maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
11 license="3-clause-BSD"
12 homepage="http://www.lightzoneproject.org/"
13 distfiles="https://github.com/ktgw0316/LightZone/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
14 checksum=c92666ebcb4d066a5acbe3c41b6c4d74f78f9ac68998e3ac8ac3e13bb316905e
15 # Cross building dcraw_lz is not supported
16 nocross=yes
17 # JNI binaries are not PIE
18 nopie=yes
19 replaces="lightzone-bin>=0"
21 do_build() {
22         export JAVA_HOME=/usr/lib/jvm/openjdk
23         cd linux
24         ant jar
27 do_install() {
28         vbin linux/products/lightzone
30         vmkdir usr/share
31         cp -pHR linux/icons ${DESTDIR}/usr/share
32         vinstall linux/products/lightzone.desktop 644 usr/share/applications
34         # Install shared libraries
35         for f in linux/products/*.so; do
36                 vinstall $f 755 usr/lib/lightzone
37         done
39         # Install helpers
40         for f in LightZone-forkd dcraw_lz; do
41                 vinstall linux/products/$f 755 usr/lib/lightzone
42         done
44         # Install jars
45         for f in linux/products/*.jar; do
46                 vinstall $f 644 usr/share/java/lightzone
47         done
49         vlicense COPYING