mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 03:57:15 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
|
|
|
|
pkgname=openjpeg
|
|
pkgver=1.5.1
|
|
pkgrel=2
|
|
pkgdesc="An open source JPEG 2000 codec"
|
|
arch=('x86_64')
|
|
license=('BSD')
|
|
url="http://www.openjpeg.org"
|
|
depends=('zlib')
|
|
source=("http://openjpeg.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('b5f74cec2688fb918331bb014061be6f')
|
|
|
|
options=('!libtool')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
# make sure we use system libs with --disable-static
|
|
# we want the most informative output during build,
|
|
# thus we pass --disable-silent-rules to configure
|
|
rm -rf libs
|
|
./configure --prefix=/usr \
|
|
--disable-static --disable-silent-rules
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/openjpeg"
|
|
install -m644 LICENSE "${pkgdir}/usr/share/licenses/openjpeg/LICENSE"
|
|
ln "${pkgdir}/usr/include/openjpeg-1.5/openjpeg.h" "${pkgdir}/usr/include/openjpeg.h"
|
|
}
|
|
|