summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f239e2d664fd696bfa8e8496827a190af5299f8 (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
# Maintainer: Jonas Platte <aur@jonasplatte.de>

pkgname=cxxtools-git
pkgver=V2.3rc1.r4.ge0ddfff
pkgrel=1
pkgdesc="A collection of general-purpose C++ classes"
arch=('i686' 'x86_64')
url="http://www.tntnet.org/cxxtools.html"
license=('LGPL')
depends=('gcc-libs' 'sh')
makedepends=('git')
provides=('cxxtools')
conflicts=('cxxtools')
source=("$pkgname::git+https://github.com/maekitalo/${pkgname%-git}.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/-/.r/;s/-/./'
}

build() {
  cd "$pkgname"

  autoreconf -i
  ./configure --enable-silent-rules --prefix=/usr
  make
}

check() {
  cd "$pkgname"

  ./test/alltests
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir/" install
}