summaryrefslogtreecommitdiff
path: root/libre/giflib-lts/PKGBUILD
blob: edb856b0d20037b41644dee59ad64ff165e3ec7c (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
35
36
37
# $Id: PKGBUILD 213644 2014-05-27 09:23:45Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Baptiste Daroussin <baptiste.daroussin@gmail.com>
# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
# Contributor: mightyjaym <jm.ambrosino@free.fr>

# Maintainer: Márcio Silva (Parabola) <emulatorman@parabola.nu>

_pkgname=giflib
pkgname=giflib-lts
pkgver=5.0.6
pkgrel=1
pkgdesc="A library for reading and writing gif images"
url="http://sourceforge.net/projects/giflib/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('glibc')
makedepends=('xmlto' 'docbook-xml' 'docbook-xsl')
source=(http://downloads.sourceforge.net/sourceforge/giflib/${_pkgname}-${pkgver}.tar.bz2)
md5sums=('603838feeed62e9eaa90415742adddf9')

build() {
  cd ${_pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd ${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"

  # remove bin, lib and man files
  rm -rv "${pkgdir}/usr/"{bin,lib/libgif.so,share/man}
  mv -v "${pkgdir}/usr/include/"gif_lib{,-lts}.h
}