summaryrefslogtreecommitdiff
path: root/pcr/coccinella/PKGBUILD
blob: 83a9ad23f9f1fde03132e46bc8aaf7f1427f09b4 (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
# Maintainer (Arch): SpepS <dreamspepser at yahoo dot it>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

# parabola changes and rationale:
#  the original PKGBUILD is gone, but we keep maintaining it.

pkgname=coccinella
pkgver=0.96.20
pkgrel=2
pkgdesc="A free cross-platform communication tool based on jabber with a built-in whiteboard for improved collaboration with other people."
arch=(any)
url="http://thecoccinella.org/"
license=('GPL')
depends=('tkpng' 'tktreectrl')
#optdepends=('snack: sound support')
conflicts=('coccinella-bin')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/Coccinella-${pkgver}Src.tar.gz"
        "$pkgname.desktop")
md5sums=('7d4fd6fb492f99e785b208aedb1d1e3e'
         '3368bf4dbcec9ff12031c52d3898ca4c')

build() {
  cd "${srcdir}/Coccinella-${pkgver}Src"

  # Remove unneded stuff
  rm -rf bin

  # Permission fixes
  find . -type d -exec chmod 755 {} \;
  chmod 755 Coccinella.tcl
}

package() {
  cd "${srcdir}/Coccinella-${pkgver}Src"

  # Bin
  install -d "$pkgdir/usr/"{bin,share/$pkgname}
  ln -s "/usr/share/$pkgname/Coccinella.tcl" "$pkgdir/usr/bin/coccinella"

  # Data
  cp -a `find . -mindepth 1 -maxdepth 1 -type d` Coccinella.tcl "$pkgdir/usr/share/$pkgname"

  # Desktop file and pixmaps
  install -Dm 644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  install -Dm 644 themes/Oxygen/icons/128x128/coccinella2.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
}

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