void-packages/srcpkgs/libraw/template
2018-06-30 04:38:43 -03:00

39 lines
1 KiB
Bash

# Template file for 'libraw'
pkgname=libraw
version=0.18.13
revision=1
wrksrc="LibRaw-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="jasper-devel lcms2-devel"
short_desc="Raw image decoder library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-only, CDDL-1.0"
homepage="https://www.libraw.org"
changelog="https://raw.githubusercontent.com/LibRaw/LibRaw/0.18-stable/Changelog.txt"
distfiles="https://www.libraw.org/data/LibRaw-${version}.tar.gz"
checksum=cb1f9d0d1fabc8967d501d95c05d2b53d97a2b917345c66553b1abbea06757ca
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
}
}