summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Phinikarides2019-09-28 18:29:25 +0300
committerAlexander Phinikarides2019-09-28 18:29:25 +0300
commit13aa2f2caef088ac00933971247a514f93088e3a (patch)
treeff286cd925e23dcc29d1b36562f4938f95af6a50
parente17bf7137aae5b9c8d6dc06026e9494e6bb24b05 (diff)
downloadaur-lightzone.tar.gz
v4.1.9
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD78
2 files changed, 80 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58397caa0c2..24919f8768b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,33 @@
pkgbase = lightzone
pkgdesc = A professional photo browser and editor, like Aperture or Lightroom
- pkgver = 4.1.8
- pkgrel = 2
+ pkgver = 4.1.9
+ pkgrel = 1
url = http://lightzoneproject.org/
arch = x86_64
license = custom:BSD-3-Clause
- depends = jre7-openjdk
+ makedepends = java-environment=8
+ makedepends = ant
+ makedepends = autoconf
+ makedepends = gcc
+ makedepends = make
+ makedepends = git
+ makedepends = libx11
+ makedepends = pkg-config
+ makedepends = rsync
+ makedepends = javahelp2
+ makedepends = lcms2
+ makedepends = libjpeg-turbo
+ makedepends = libtiff
+ depends = java-runtime=8
depends = javahelp2
depends = lcms2
depends = libjpeg-turbo
depends = libtiff
depends = libxml2
- source = https://download.opensuse.org/repositories/home:/ktgw0316:/LightZone/Arch_Extra/x86_64/lightzone-4.1.8-0-x86_64.pkg.tar.xz
- md5sums = 563a2a43982c88d1c9be7b56f20cb124
+ provides = lightzone
+ conflicts = lightzone-git
+ source = https://github.com/ktgw0316/LightZone/archive/4.1.9.zip
+ md5sums = e95d9afbe7fc517d1bc79d6d2264b1b7
pkgname = lightzone
diff --git a/PKGBUILD b/PKGBUILD
index 9a4fa1d675c..d9e622cb884 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,73 @@
-# Maintainer: <trash@ps3zone.org>
-# Contributer: Rikles <style.boubou@gmail.com>
-# Contributer: N30N <archlinux@alunamation.com>
+# Maintainer: alexisph@gmail.com
+# Contributor: <trash@ps3zone.org>
+# Contributor: Rikles <style.boubou@gmail.com>
+# Contributor: N30N <archlinux@alunamation.com>
pkgname="lightzone"
-pkgver=4.1.8
-pkgrel=2
+pkgver=4.1.9
+pkgrel=1
pkgdesc="A professional photo browser and editor, like Aperture or Lightroom"
url="http://lightzoneproject.org/"
license=("custom:BSD-3-Clause")
arch=("x86_64")
-depends=('jre7-openjdk'
- 'javahelp2'
- 'lcms2'
- 'libjpeg-turbo'
- 'libtiff'
- 'libxml2')
+conflicts=('lightzone-git')
+provides=('lightzone')
+depends=('java-runtime=8'
+ 'javahelp2'
+ 'lcms2'
+ 'libjpeg-turbo'
+ 'libtiff'
+ 'libxml2')
+makedepends=('java-environment=8'
+ 'ant'
+ 'autoconf'
+ 'gcc'
+ 'make'
+ 'git'
+ 'libx11'
+ 'pkg-config'
+ 'rsync'
+ 'javahelp2'
+ 'lcms2'
+ 'libjpeg-turbo'
+ 'libtiff')
-source=("https://download.opensuse.org/repositories/home:/ktgw0316:/LightZone/Arch_Extra/x86_64/${pkgname}-${pkgver}-0-x86_64.pkg.tar.xz")
-md5sums=('563a2a43982c88d1c9be7b56f20cb124')
+source=("https://github.com/ktgw0316/LightZone/archive/${pkgver}.zip")
+md5sums=('e95d9afbe7fc517d1bc79d6d2264b1b7')
+
+# https://github.com/Aries85/LightZone/issues/218#issuecomment-357868376
+MAKEFLAGS="-j1"
build() {
- cd "${srcdir}"
- tar -I xz -xf lightzone-4.1.8-0-x86_64.pkg.tar.xz
+ cd "${srcdir}/LightZone-${pkgver}/"
+ if [ -d /usr/lib/jvm/java-8-jdk ]; then
+ export JAVA_HOME=/usr/lib/jvm/java-8-jdk
+ else
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
+ fi
+
+ ant -f linux/build.xml jar
}
package() {
- cd "${srcdir}"
- # Install
- cp -dr --no-preserve=ownership ./usr "${pkgdir}"/
+ cd "${srcdir}/LightZone-${pkgver}/"
+
+ _libexecdir=/usr/lib
+ install -dm 0755 "${pkgdir}/${_libexecdir}/${pkgname}"
+ 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}"
}