43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'libraw'
|
|
pkgname=libraw
|
|
version=0.19.2
|
|
revision=2
|
|
wrksrc="LibRaw-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config automake libtool"
|
|
makedepends="jasper-devel lcms2-devel"
|
|
short_desc="Raw image decoder library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="LGPL-2.1-only, CDDL-1.0"
|
|
homepage="https://www.libraw.org"
|
|
changelog="https://github.com/LibRaw/LibRaw/raw/${version%.*}-stable/Changelog.txt"
|
|
distfiles="https://www.libraw.org/data/LibRaw-${version}.tar.gz"
|
|
checksum=400d47969292291d297873a06fb0535ccce70728117463927ddd9452aa849644
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/share/licenses
|
|
rm -f ${DESTDIR}/usr/share/doc/libraw/Changelog.txt
|
|
mv ${DESTDIR}/usr/share/doc/libraw ${DESTDIR}/usr/share/licenses
|
|
}
|
|
|
|
libraw-devel_package() {
|
|
depends="${makedepends} libraw>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libraw-progs_package() {
|
|
short_desc+=" - applications"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|