diff options
author | D. Can Celasun | 2018-01-16 08:13:46 +0100 |
---|---|---|
committer | D. Can Celasun | 2018-01-16 08:13:46 +0100 |
commit | 89213bbd7ca3bc9e5cb8f5fb26112c94f0a8a886 (patch) | |
tree | 6b13ab6ee8d14b434d884fe737112f1768b05ba8 /PKGBUILD | |
download | aur-89213bbd7ca3bc9e5cb8f5fb26112c94f0a8a886.tar.gz |
New package: lightzone-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..471d46a7e605 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Duru Can Celasun <can[at]dcc[dot]im> +# Contributor: <trash@ps3zone.org> +# Contributor: Rikles <style.boubou@gmail.com> +# Contributor: N30N <archlinux@alunamation.com> + +pkgname="lightzone-git" +_pkgname="lightzone" +pkgver=4.0.0.913.gb6b80116 +pkgrel=1 +pkgdesc="A professional photo browser and editor, like Aperture or Lightroom (latest git version)" +url="http://lightzoneproject.org/" +license=('custom:BSD-3-Clause') +arch=('i686' 'x86_64') +depends=('java-environment-jdk=7' 'javahelp2' 'lcms2' 'libjpeg-turbo' 'libtiff' 'libxml2') +makedepends=('java-runtime=7' 'apache-ant' 'autoconf' 'gcc' 'make' 'git' 'libx11' 'pkg-config' 'rsync' 'javahelp2' 'lcms2' 'libjpeg-turbo' 'libtiff') +conflicts=('lightzone') +source=('git+https://github.com/ktgw0316/LightZone.git') +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/LightZone" + git describe --always | sed 's|-|.|g' +} + + +# https://github.com/Aries85/LightZone/issues/218#issuecomment-357868376 +MAKEFLAGS="-j1" + +build() { + cd "${srcdir}/LightZone/" + if [ -d /usr/lib/jvm/java-7-jdk ]; then + export JAVA_HOME=/usr/lib/jvm/java-7-jdk + else + export JAVA_HOME=/usr/lib/jvm/java-7-openjdk + fi + [ -f /etc/profile.d/apache-ant.sh ] && source /etc/profile.d/apache-ant.sh + ant -f linux/build.xml jar +} + +package() { + cd "${srcdir}/LightZone/" + + _libexecdir=/usr/lib + install -dm 0755 "${pkgdir}/${_libexecdir}/${_pkgname}" + ls * + cp -pHR linux/products/*.so "${pkgdir}/${_libexecdir}/${_pkgname}" + _javadir=/usr/share/java + install -dm 0755 "${pkgdir}/${_javadir}/${_pkgname}" + cp -pH lightcrafts/products/dcraw_lz "${pkgdir}/${_javadir}/${_pkgname}" + cp -pH lightcrafts/products/LightZone-forkd "${pkgdir}/${_javadir}/${_pkgname}" + cp -pHR linux/products/*.jar "${pkgdir}/${_javadir}/${_pkgname}" + + # create icons and shortcuts + _datadir=/usr/share + install -dm 0755 "${pkgdir}/${_datadir}/applications" + install -m 644 linux/products/lightzone.desktop "${pkgdir}/${_datadir}/applications/" + cp -pHR linux/icons "${pkgdir}/${_datadir}/" + + _bindir=/usr/bin + install -dm 0755 "${pkgdir}/${_bindir}" + install -m 755 "linux/products/${_pkgname}" "${pkgdir}/${_bindir}" +} |