summaryrefslogtreecommitdiff
path: root/pcr/unittestpp/PKGBUILD
blob: 17757bfc0107e9b23d9572b5dca4eb203dabb172 (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
# Maintainer: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor (Arch): Piotr Beling <qwak@w8.pl>
# Contributor (Arch): Vianney le Clément <vleclement AT gmail · com>
pkgname=unittestpp
pkgver=1.4
pkgrel=3
pkgdesc="A lightweight unit testing framework for C++"
arch=('i686' 'x86_64' 'mips64el')
url="http://unittest-cpp.sourceforge.net/"
depends=('gcc-libs')
source=("http://downloads.sourceforge.net/project/unittest-cpp/UnitTest%2B%2B/$pkgver/unittest-cpp-${pkgver}.zip")
sha1sums=('dad944159e2e135aea74039987490eaaee00f2ad')
license=('MIT')

build() {
  cd "$srcdir/UnitTest++"
  make all
}

package() {
  cd "$srcdir/UnitTest++"
  
  install -dm755 "$pkgdir/usr/include/unittest++/Posix"
  install -m644 src/*.h "$pkgdir/usr/include/unittest++"
  install -m644 src/Posix/*.h "$pkgdir/usr/include/unittest++/Posix"
  
  install -dm755 "$pkgdir/usr/lib"
  install -m644 libUnitTest++.a "$pkgdir/usr/lib"

  install -dm755 "$pkgdir/usr/share/licenses/unittest++"
  install -m644 COPYING "$pkgdir/usr/share/licenses/unittest++/LICENSE"
  install -dm755 "$pkgdir/usr/share/doc/unittest++"
  install -m644 README "$pkgdir/usr/share/doc/unittest++/README"
  install -m644 docs/UnitTest++.html "$pkgdir/usr/share/doc/unittest++/UnitTest++.html"
}

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