PKGBUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Maintainer: Andreas Grapentin <andreas@grapentin.org>
  2. # Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
  3. # Contributor: Márcio Silva <coadde@hyperbola.info>
  4. # Contributor (Arch): Christian Himpel <chressie at gmail dot com>
  5. # Contributor (Arch): Johannes Hanika <hanatos at gmail dot com>
  6. # Contributor: Freemor <freemor@freemor.ca>
  7. pkgname=darktable
  8. epoch=2
  9. pkgver=2.6.3
  10. pkgrel=1.nonprism1
  11. pkgdesc="Utility to organize and develop raw images, without flickcurl support"
  12. arch=(i686 x86_64 armv7h)
  13. url="https://darktable.org"
  14. license=(GPL3)
  15. depends=(pugixml libjpeg-turbo colord-gtk libgphoto2 openexr lensfun iso-codes
  16. exiv2 openjpeg2 graphicsmagick lua osm-gps-map libsecret)
  17. makedepends=(cmake intltool desktop-file-utils llvm clang python-jsonschema libwebp libxslt)
  18. source=("https://github.com/darktable-org/darktable/releases/download/release-${pkgver}/darktable-${pkgver/rc/.rc}.tar.xz"{,.asc}
  19. fixCompileFlag.patch)
  20. sha256sums=('a518999c8458472edfc04577026ce5047d74553052af0f52d10ba8ce601b78f0'
  21. 'SKIP'
  22. '4529cf75dc0fd68f3aed9b3c917106eeac58adffa608b57b79256f66fd23959b')
  23. validpgpkeys=(C4CBC150699956E2A3268EF5BB5CC8295B1779C9 # darktable releases <release@darktable.org>
  24. F10F9686652B0E949FCD94C318DCA123F949BD3B) # Pascal Obry <pascal@obry.net>
  25. prepare() {
  26. cd "$srcdir/$pkgname-$pkgver"
  27. patch --strip=1 --input=../fixCompileFlag.patch
  28. cd "$srcdir"
  29. mkdir -p build
  30. }
  31. build() {
  32. cd build
  33. cmake ../${pkgname}-${pkgver/rc/~rc} \
  34. -DCMAKE_INSTALL_PREFIX=/usr \
  35. -DCMAKE_INSTALL_LIBDIR=/usr/lib \
  36. -DCMAKE_BUILD_TYPE=Release \
  37. -DBINARY_PACKAGE_BUILD=1 \
  38. -DBUILD_USERMANUAL=False \
  39. -DUSE_LIBSECRET=ON \
  40. -DUSE_LUA=ON \
  41. -DUSE_COLORD=ON \
  42. -DRAWSPEED_ENABLE_LTO=ON \
  43. -DUSE_USE_FLICKR=Off \
  44. -DPROJECT_VERSION=${pkgver}
  45. make
  46. }
  47. package() {
  48. cd build
  49. make DESTDIR="${pkgdir}" install
  50. ln -s darktable/libdarktable.so "${pkgdir}"/usr/lib/libdarktable.so
  51. }