desktop/libicns/PKGBUILD
2018-10-22 17:47:48 +02:00

39 lines
911 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
# Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
pkgname=libicns
_pkgname=icns
pkgver=0.8.1
pkgrel=3
pkgdesc="Library for manipulating MacOS X .icns icon files."
arch=('x86_64')
url="http://icns.sourceforge.net"
license=('LGPL' 'GPL')
depends=('jasper' 'libpng')
source=(http://downloads.sf.net/$_pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('7a9b74b84ce08c5b11bdee3cad296dd3')
build() {
cd $srcdir/$pkgname-$pkgver
# Fix for latest libpng.
sed \
-e "s/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/" \
-i icnsutils/png2icns.c
# Configure and build.
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}