summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b43807b0f89d5c55acee89004b4f0185a23ebf8 (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
39
40
41
42
# Maintainer: Marcel Schneider  <marcel@coopmasters.de>
# Contributor: Kaan Genç  <aur@kaangenc.me>
pkgname=libcsv
pkgver=3.0.3
pkgrel=1
pkgdesc="A small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/libcsv/"
license=('LGPL')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('d3307a7bd41d417da798cd80c80aa42a')


prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # Replace the outdated config.sub and config.guess files. Otherwise,
  # the package doesn't build.
  cp /usr/share/libtool/build-aux/config.{sub,guess} .
}


build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure \
      --prefix=/usr \
      --mandir=/usr/share/man
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"

  make check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}