summaryrefslogtreecommitdiff
path: root/rolo-git/PKGBUILD
blob: db7ef595c3fb14deceaef160f2d10cd12a70b9ae (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
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

_pkgname=rolo
pkgname=${_pkgname}-git
pkgver=0.392.8446eb7
pkgrel=1
pkgdesc="Ncurses vCard viewer and editor"
arch=('i686' 'x86_64')
url="https://github.com/libvc/rolo"
license=('GPL')
depends=('ncurses' 'libunac' 'libvc-git')
makedepends=('autoconf')
conflicts=(rolo)
provides=(rolo)
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')

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

build() {
  cd "${_pkgname}"
  autoreconf -f -i
  CFLAGS="${CFLAGS}" ./configure --prefix=/usr --mandir=/usr/share/man
  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}"
}