mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
added community/optipng
This commit is contained in:
parent
96f25be1f0
commit
6569dfeda8
1 changed files with 35 additions and 0 deletions
35
community/optipng/PKGBUILD
Normal file
35
community/optipng/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# $Id$
|
||||
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
|
||||
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
|
||||
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - disable neon in included libpng via CPPFLAGS to fix FTBFS
|
||||
|
||||
pkgname=optipng
|
||||
pkgver=0.7.6
|
||||
pkgrel=1
|
||||
pkgdesc='Compresses PNG files to a smaller size, without losing any information.'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://optipng.sourceforge.net/'
|
||||
license=('ZLIB')
|
||||
depends=('glibc')
|
||||
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
|
||||
md5sums=('568e0738358450eca69ecf578d48f26c')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
CPPFLAGS+=" -DPNG_ARM_NEON_OPT=0"
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install
|
||||
|
||||
# install license
|
||||
install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
Loading…
Reference in a new issue