summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 118d19546b6e5ff5f811f547393d4d1bec25c637 (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
48
49
50
# Maintainer: Thomas Jost <schnouki@schnouki.net>
pkgname=cardpeek-svn
pkgver=206
pkgrel=1
pkgdesc="A tool to read the contents of smartcards"
arch=(i686 x86_64)
url="https://code.google.com/p/cardpeek/"
license=('GPL')
depends=('gtk2' 'hicolor-icon-theme' 'lua' 'pcsclite')
makedepends=('subversion')
provides=('cardpeek')
conflicts=('cardpeek')
install=cardpeek.install

_svntrunk="http://cardpeek.googlecode.com/svn/trunk"
_svnmod="cardpeek"

build() {
  cd "$srcdir"
  msg "Connecting to SVN server...."

  if [[ -d "$_svnmod/.svn" ]]; then
    (cd "$_svnmod" && svn up -r "$pkgver")
  else
    svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_svnmod-build"
  cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  #
  # BUILD HERE
  #
  #./autogen.sh
  aclocal
  automake --add-missing
  ./configure --prefix=/usr
  make
}

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

# vim:set ts=2 sw=2 et: