Browse code

First commit

Qurban Ullah authored on 27/02/2018 17:52:58
Showing 2 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,45 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=bluefish
6
+pkgver=2.2.10
7
+pkgrel=1
8
+pkgdesc="A powerful HTML editor for experienced web designers and programmers"
9
+arch=('i686' 'x86_64')
10
+url="http://bluefish.openoffice.nl/"
11
+license=('GPL3')
12
+depends=('gtk3' 'enchant' 'python2' 'desktop-file-utils')
13
+makedepends=('gucharmap' 'intltool')
14
+optdepends=('gucharmap: for using the charmap plugin')
15
+install=bluefish.install
16
+source=(http://www.bennewitz.com/bluefish/stable/source/bluefish-${pkgver}.tar.bz2{,.sig})
17
+sha1sums=('abb2080b5cbc65cd9c7551572ac21012c5ee2031'
18
+          'SKIP')
19
+validpgpkeys=('58FD02766D031E832560A6A226073EFCDAC576E6')
20
+
21
+prepare() {
22
+  cd ${pkgname}-${pkgver}
23
+  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
24
+    src/plugin_zencoding/zencoding/{,filters/,actions/}*.py \
25
+    data/{jsbeautify,jsmin.py,lorem-ipsum-generator}
26
+    
27
+    # enchant2 fix
28
+    sed -e 's|\[enchant\]|\[enchant-2\]|g' -e 's|\[enchant >|\[enchant-2 >|g' \
29
+    -e 's|enchant/enchant.h|enchant-2/enchant.h|g' -e 's|BF_dependencies enchant|BF_dependencies enchant-2|g' \
30
+    -i configure.ac
31
+    
32
+  autoreconf -vi
33
+}
34
+
35
+build() {
36
+  cd ${pkgname}-${pkgver}
37
+  PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
38
+    --enable-spell-check --disable-update-databases --disable-xml-catalog-update
39
+  make
40
+}
41
+
42
+package() {
43
+  cd ${pkgname}-${pkgver}
44
+  make DESTDIR="${pkgdir}" install
45
+}
0 46
new file mode 100755
... ...
@@ -0,0 +1,29 @@
1
+post_install() {
2
+  if [ ! -d etc/xml ]; then
3
+    mkdir -p etc/xml
4
+  fi
5
+  if [ ! -e etc/xml/catalog ]; then
6
+    xmlcatalog --noout --create etc/xml/catalog
7
+  fi
8
+  xmlcatalog --noout --add 'delegateURI' \
9
+    'http://bluefish.openoffice.nl/ns/bflang/2.0/' /usr/share/xml/bluefish \
10
+    etc/xml/catalog
11
+
12
+  update-desktop-database -q
13
+  update-mime-database /usr/share/mime > /dev/null
14
+  gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
15
+  	
16
+}
17
+
18
+pre_upgrade() {
19
+  post_remove
20
+}
21
+
22
+post_upgrade() {
23
+  post_install
24
+}
25
+
26
+post_remove() {
27
+  xmlcatalog --noout --del \
28
+    /usr/share/xml/bluefish etc/xml/catalog
29
+}