summaryrefslogtreecommitdiff
path: root/pcr/coccinella
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-09 15:00:00 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-09 15:00:00 -0500
commit990e055918fb4f737b63b42bf1f80a3b9b850fe6 (patch)
tree413dc14a62c65dd4266288f13fa2b261c614d8d9 /pcr/coccinella
parent30dfd62da2105d5c3977a44fa49362e2a87e3185 (diff)
downloadabslibre-990e055918fb4f737b63b42bf1f80a3b9b850fe6.tar.gz
abslibre-990e055918fb4f737b63b42bf1f80a3b9b850fe6.tar.bz2
abslibre-990e055918fb4f737b63b42bf1f80a3b9b850fe6.zip
coccinella: add new package to [pcr]
Diffstat (limited to 'pcr/coccinella')
-rw-r--r--pcr/coccinella/PKGBUILD46
-rw-r--r--pcr/coccinella/coccinella.desktop9
-rw-r--r--pcr/coccinella/coccinella.install11
3 files changed, 66 insertions, 0 deletions
diff --git a/pcr/coccinella/PKGBUILD b/pcr/coccinella/PKGBUILD
new file mode 100644
index 000000000..f76414033
--- /dev/null
+++ b/pcr/coccinella/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer (Arch): SpepS <dreamspepser at yahoo dot it>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=coccinella
+pkgver=0.96.20
+pkgrel=1
+pkgdesc="A free and open-source 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:
diff --git a/pcr/coccinella/coccinella.desktop b/pcr/coccinella/coccinella.desktop
new file mode 100644
index 000000000..c5bfef1b1
--- /dev/null
+++ b/pcr/coccinella/coccinella.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Coccinella
+GenericName=Coccinella
+Comment=Communicate with Coccinella
+Exec=coccinella
+Icon=coccinella
+Terminal=false
+Type=Application
+Categories=Network;InstantMessaging;
diff --git a/pcr/coccinella/coccinella.install b/pcr/coccinella/coccinella.install
new file mode 100644
index 000000000..e111ef946
--- /dev/null
+++ b/pcr/coccinella/coccinella.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}