mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 08:48:00 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
#
|
|
# Platforms packages for Chakra
|
|
#
|
|
|
|
pkgname=djvulibre
|
|
pkgver=3.5.25.2
|
|
pkgrel=1
|
|
pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents"
|
|
arch=("i686" "x86_64")
|
|
license=('GPL')
|
|
url="http://djvu.sourceforge.net/"
|
|
depends=('gcc-libs' 'libtiff' 'bash' 'hicolor-icon-theme')
|
|
makedepends=('pkg-config')
|
|
provides=("libdjvu=${pkgver}")
|
|
replaces=('libdjvu')
|
|
conflicts=('libdjvu')
|
|
optdepends=('djview4: Viewer application')
|
|
options=('!libtool')
|
|
source=(http://downloads.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz)
|
|
md5sums=('994e2ff1d4ae6a763764dfe20509826e')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-3.5.25"
|
|
./configure --prefix=/usr --disable-desktopfiles
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-3.5.25"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
#Install icons for mime-types.
|
|
install -m755 -d ${pkgdir}/usr/share/icons/hicolor/{22x22,32x32,48x48,64x64}/mimetypes
|
|
for sz in 22 32 48 64; do
|
|
install -m644 desktopfiles/prebuilt-hi${sz}-djvu.png "${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes/image-vnd.djvu.mime.png"
|
|
done
|
|
}
|