summaryrefslogtreecommitdiff
path: root/libvc-git/PKGBUILD
blob: 3e2a038f2a273cb5e473d336105d130d7e6f5316 (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
43
44
45
46
47
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

_pkgname=libvc
pkgname=${_pkgname}-git
pkgver=0.91.3834e2f
pkgrel=1
pkgdesc="vCard library, part of rolo project."
arch=('i686' 'x86_64')
url="https://github.com/libvc/libvc"
license=("LGPL")
depends=('glibc')
makedepends=('flex' 'git' 'autoconf')
conflicts=(libvc)
provides=(libvc)
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')
options=(!libtool)

pkgver() {
  cd "${_pkgname}"
  echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

#prepare() {
#  cd "${_pkgname}"
#
#  # Improve vCard parsing times (doesn't apply cleanly)
#  patch -p1 -i patches/improve-parsing-time-large-vcards.patch
#  patch -p1 -i patches/fix-segfault.patch
#}

build() {
  cd "${_pkgname}"
  autoreconf -f -i
  CFLAGS="${CFLAGS}" ./configure --prefix=/usr
  make
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install
  install -dm755 "${pkgdir}/usr/share/doc/${_pkgname}"
  install -m644 AUTHORS NEWS README THANKS TODO \
    "${pkgdir}/usr/share/doc/${_pkgname}"
}