summaryrefslogtreecommitdiff
path: root/extra/dotconf/PKGBUILD
blob: f8c0b90613d89d0e93dedd734d8bc630a7d7ab8e (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
38
# $Id$
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Chris Brannon <cmbrannon@cox.net>

pkgname=dotconf
pkgver=1.3
pkgrel=1
pkgdesc='A C library for parsing configuration files'
url="http://www.opentts.org/projects/dotconf/"
arch=('i686' 'x86_64' 'mips64el')
depends=('glibc')
makedepends=('pkgconfig' 'findutils')
license=('LGPL2.1')
source=("http://files.opentts.org/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('35c19ec9b96648f53e987e47e52dbc4c')
options=('!libtool')

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

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  # There are no manpages.  Docu consists of textfiles and small examples.
  # "make install" didn't install the docu, so do it manually.
  install -d ${pkgdir}/usr/share/doc/${pkgname}
  cp -a doc/*.txt README examples/ ${pkgdir}/usr/share/doc/${pkgname}
  # Get rid of files specific to Microsoft products:
  find ${pkgdir}/usr/share/doc/${pkgname} -name '*.dsp' | xargs rm -f

  # Dotconf uses libpool internally for memory management.  No need to install.
  rm -f ${pkgdir}/usr/lib/libpool.a
  rm -f ${pkgdir}/usr/include/libpool.h
}