[arch-commits] Commit in devil/trunk (PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Sun Jul 1 07:38:42 UTC 2018


    Date: Sunday, July 1, 2018 @ 07:38:42
  Author: lcarlier
Revision: 349318

upgpkg: devil 1.8.0-1

upstream update 1.8.0

Modified:
  devil/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++----------------------------
 1 file changed, 14 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-01 07:35:49 UTC (rev 349317)
+++ PKGBUILD	2018-07-01 07:38:42 UTC (rev 349318)
@@ -4,45 +4,31 @@
 # Contributor: TheHoff <forums>
 
 pkgname=devil
-pkgver=1.7.8
-pkgrel=24
+pkgver=1.8.0
+pkgrel=1
 pkgdesc="Library for reading several different image formats"
 arch=('x86_64')
 url="http://openil.sourceforge.net/"
 depends=('libpng' 'libmng' 'jasper' 'lcms' 'openexr')
+makedepends=('cmake')
 options=('!docs' '!emptydirs')
 license=('GPL')
-source=(http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz
-        libpng14.patch
-        gcc-5.0.patch
-        jasper.patch)
-md5sums=('7918f215524589435e5ec2e8736d5e1d'
-         '0f839ccefd43b0ee8b4b3f99806147fc'
-         '8d1b5d973c93927f60f775aecb448e77'
-         '85d5eaf3104967dea10101aa7e5de298')
+source=(http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz)
+sha256sums=('0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709')
 
-prepare() {
-  cd ${srcdir}/devil-$pkgver
-
-  patch -Np1 -i ${srcdir}/libpng14.patch
-  patch -Np1 -i ${srcdir}/gcc-5.0.patch
-  patch -Np1 -i ${srcdir}/jasper.patch
-}
-
 build() {
-  cd ${srcdir}/devil-$pkgver
+  cd ${srcdir}/DevIL/DevIL
 
-  if [[ $CARCH == x86_64 ]]; then
-    ./configure --prefix=/usr --enable-ILU
-  else
-    ./configure --prefix=/usr --enable-ILU --disable-sse3
-  fi
-
-  make
+  rm -rf build && mkdir build
+  cd build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  make  
 }
 
 package() {
-  cd ${srcdir}/devil-$pkgver
+  cd ${srcdir}/DevIL/DevIL/build
 
-  make prefix=${pkgdir}/usr install
+  make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list