summaryrefslogtreecommitdiff
path: root/community/libharu/PKGBUILD
blob: 75928feae2e190a5d75a4da56a551f1df6d8e242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 63644 2012-02-05 12:03:04Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer : SpepS <dreamspepser at yahoo dot it>
# Contributor: Auguste <auguste@gmail.com>
# Contributor: Jose Negron <josenj.arch@mailnull.com>

pkgname=libharu
pkgver=2.2.1
pkgrel=2
pkgdesc="C/C++ library for generating PDF documents"
url="http://libharu.org/wiki/Main_Page"
arch=('i686' 'x86_64' 'mips64el')
license=('custom:ZLIB')
depends=('libpng' 'gcc-libs')
options=(!libtool)
source=("http://libharu.org/files/$pkgname-$pkgver.tar.gz"
	libpng15.patch)
md5sums=('63da8e087744f1d6cf16f9501b1cb766'
         '3793dd30017474bcd277af3b419bc0f6')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 <$srcdir/libpng15.patch
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  # license
  install -d "$pkgdir/usr/share/licenses/$pkgname"
  sed -n '102,120p' README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}