2021-12-12 02:02:38 +00:00
|
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
|
|
# Contributor: Arjan Timmerman <arjan.archlinux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster.gmx.co.uk>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove --enable-amd64 from configure
|
|
|
|
|
|
|
|
pkgname=imlib2
|
2022-12-20 16:35:54 +00:00
|
|
|
pkgver=1.10.0
|
2023-01-05 00:50:46 +00:00
|
|
|
pkgrel=2
|
2022-02-07 21:00:01 +00:00
|
|
|
pkgdesc='Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support'
|
|
|
|
url='https://sourceforge.net/projects/enlightenment/'
|
2021-12-12 02:02:38 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
license=('BSD')
|
2022-02-07 21:00:01 +00:00
|
|
|
options=('debug')
|
2022-04-25 12:54:51 +00:00
|
|
|
makedepends=(# Currently highway does provide a static library only, that libjxl links to.
|
|
|
|
# This introduces a build dependency for now...
|
|
|
|
'highway'
|
|
|
|
'libheif' 'libid3tag' 'libjxl' 'librsvg' 'libspectre' 'libwebp' 'openjpeg2')
|
|
|
|
depends=('bzip2' 'freetype2' 'giflib' 'libjpeg-turbo' 'libpng' 'libtiff' 'libxext' 'xz')
|
|
|
|
optdepends=('libheif: HEIF loader (for AVIF)'
|
|
|
|
'libid3tag: ID3 loader'
|
|
|
|
'libjxl: JXL loader'
|
|
|
|
'librsvg: SVG loader'
|
|
|
|
'libspectre: PS loader'
|
|
|
|
'libwebp: WEBP loader'
|
|
|
|
'openjpeg2: J2K loader')
|
2022-02-07 21:00:01 +00:00
|
|
|
source=("https://downloads.sourceforge.net/project/enlightenment/imlib2-src/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
2022-12-20 16:35:54 +00:00
|
|
|
sha256sums=('727c1a937c885c080c37217e476dc88b5a3e60d737f1bf040b343520b781cbba')
|
|
|
|
sha512sums=('35d78a6bf5b9b5474cbed6c1ead2e6252c8fe42bc5fc9c1a4e16958854e8bc08dfa79ceb403ca1cb34003887be5db4c908e6104e32639d9e09d11b940e591a19')
|
2021-12-12 02:02:38 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
|
2022-02-07 21:00:01 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc/imlib2 \
|
|
|
|
--x-libraries=/usr/lib
|
|
|
|
|
2021-12-12 02:02:38 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Install License
|
|
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
|
|
}
|