summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 523aa6c12db40d911696a2eab42d4546b891bb0c (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
# Contributor: A. Klitzing <andre () incubo () de>
pkgname=cppncss
pkgver=1.0.3
pkgrel=3
pkgdesc="various measurements by statically analyzing C++ source code"
arch=('i686' 'x86_64')
url="http://cppncss.sourceforge.net"
license=('BSD')
depends=('java-environment>=5')
source=(https://downloads.sourceforge.net/project/cppncss/cppncss/$pkgver/cppncss-$pkgver.tar.gz $pkgname.sh)

package()
{
  cd "$srcdir/$pkgname-$pkgver"

  # install profile.d script
  install -dm755 ${pkgdir}/etc/profile.d
  install -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d/

  # install cppncss
  install -dm755 ${pkgdir}/usr/share/java/${pkgname}/{bin,lib}
  install -m755 bin/cppncss ${pkgdir}/usr/share/java/${pkgname}/bin
  install -m644 lib/*.jar ${pkgdir}/usr/share/java/${pkgname}/lib

  #install license
  install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

md5sums=('1f064bf6e2e6ba7bd4d8a6a7bde8b364'
         '4e4708a0ed13cbc80d53162fec99236c')