summaryrefslogtreecommitdiff
path: root/community/fwbuilder
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-03-11 08:16:23 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-03-11 08:16:23 +0100
commit40ece75655aebe0dd951a0489ed2111f1c27f8a8 (patch)
tree77e41350cb98db3c5b181532d02c69f8fbad598f /community/fwbuilder
parentfb8b936c2a92c0d645a460202c87c0a24569991e (diff)
parentef17357a9745e05e301b724d13a341067ddb3d5b (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/fcitx-mozc/PKGBUILD community/geany-plugins/PKGBUILD community/kyotocabinet/PKGBUILD community/sysstat/PKGBUILD core/openldap/PKGBUILD
Diffstat (limited to 'community/fwbuilder')
-rw-r--r--community/fwbuilder/PKGBUILD7
-rw-r--r--community/fwbuilder/fwbuilder.install2
-rw-r--r--community/fwbuilder/fwbuilder.xml11
3 files changed, 19 insertions, 1 deletions
diff --git a/community/fwbuilder/PKGBUILD b/community/fwbuilder/PKGBUILD
index e3377e507..cb4d7a718 100644
--- a/community/fwbuilder/PKGBUILD
+++ b/community/fwbuilder/PKGBUILD
@@ -2,10 +2,11 @@
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# vim: set ft=sh:
pkgname=fwbuilder
pkgver=5.1.0.3599
-pkgrel=3
+pkgrel=4
pkgdesc="Object-oriented GUI and set of compilers for various firewall platforms"
url="http://www.fwbuilder.org/"
arch=('i686' 'x86_64' 'mips64el')
@@ -14,8 +15,10 @@ depends=('libxslt' 'net-snmp' 'qt4')
conflicts=('libfwbuilder')
install=fwbuilder.install
source=("http://sourceforge.net/projects/fwbuilder/files/Current_Packages/${pkgver%.*}/fwbuilder-${pkgver}.tar.gz"
+ 'fwbuilder.xml'
'fwbuilder-gcc47.patch')
sha256sums=('452514a1ec0be1416bfca93603e6c89deb91d1a3a19671c64b5a8868a3743daf'
+ 'f8eacaa9895b17af3a1c148064b5ad8381b83f7983acb14687faef488ac8fede'
'd7c602d5b99c6e40403c0b02e34abf15de83802257ca5ce80ad53d486b692f27')
build() {
@@ -30,4 +33,6 @@ build() {
package() {
cd "${srcdir}/fwbuilder-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
+ echo "MimeType=text/x-xml-fwbuilder;" >> "$pkgdir/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "$srcdir/fwbuilder.xml" "$pkgdir/usr/share/mime/packages/fwbuilder.xml"
}
diff --git a/community/fwbuilder/fwbuilder.install b/community/fwbuilder/fwbuilder.install
index 45f0c2242..b2d479931 100644
--- a/community/fwbuilder/fwbuilder.install
+++ b/community/fwbuilder/fwbuilder.install
@@ -1,5 +1,7 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q /usr/share/applications &> /dev/null
+ update-mime-database usr/share/mime &> /dev/null
}
post_upgrade() {
diff --git a/community/fwbuilder/fwbuilder.xml b/community/fwbuilder/fwbuilder.xml
new file mode 100644
index 000000000..31db9f1f1
--- /dev/null
+++ b/community/fwbuilder/fwbuilder.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="text/x-xml-fwbuilder">
+ <generic-icon name="fwbuilder"/>
+ <comment>FWBuilder configuration file</comment>
+ <glob pattern="*.fwb"/>
+ <magic priority="60">
+ <match value="&lt;!DOCTYPE FWObjectDatabase SYSTEM &quot;fwbuilder.dtd&quot;&gt;" type="string" offset="0:100"/>
+ </magic>
+ </mime-type>
+</mime-info>