updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mate-file-manager-makepkg / PKGBUILD
blob346ff2029ed3d14f323557a3c14c9bd870726ee8
1 # Maintainer: PirateJonno <j@skurvy.no-ip.org>
3 pkgname=mate-file-manager-makepkg
4 tarname=nautilus-makepkg
5 pkgver=2.30.0
6 pkgrel=1
7 pkgdesc='An AUR helper for the MATE file manager context menu'
8 arch=('i686' 'x86_64')
9 url='http://www.gnome.org/'
10 license=('GPL')
11 depends=('glib2' 'mate-conf' 'mate-desktop' 'mate-file-manager' 'pacman')
12 makedepends=('intltool')
13 install="${pkgname}.install"
14 options=('!libtool')
15 group=('mate-extra')
16 source=("http://cloud.github.com/downloads/PirateJonno/${tarname}/${tarname}-${pkgver}.tar.bz2")
17 sha256sums=('a2ad3428ea3126a1916206f0091f5a85ed83308a0fccfae39ec69d6b0bf96a7f')
19 build() {
20         cd "${srcdir}/${tarname}-${pkgver}"
22         # from https://bbs.archlinux.org/viewtopic.php?pid=962336#p962336
23     DIR_LIST=`ls -c`" "$(for F in `ls -c src`;do echo "src/$F ";done;)
24     for FILENAME in ${DIR_LIST}; do
25         # check if its a folder
26         if [ -f "${FILENAME}" ]; then
27             echo "patching file $FILENAME"
28             sed -i "s/panel-applet/mate-panel-applet/g" ${FILENAME}
29             sed -i "s/panelapplet/matepanelapplet/g" ${FILENAME}
30             sed -i "s/panel_applet/mate_panel_applet/g" ${FILENAME}
31             sed -i "s/PANEL_APPLET/MATE_PANEL_APPLET/g" ${FILENAME}
32             sed -i "s/PanelApplet/MatePanelApplet/g" ${FILENAME}
34             sed -i "s/mate-mate-panel-applet/mate-panel-applet/g" ${FILENAME}
35             sed -i "s/matematepanelapplet/matepanelapplet/g" ${FILENAME}
36             sed -i "s/mate_mate_panel_applet/mate_panel_applet/g" ${FILENAME}
37             sed -i "s/MATE_MATE_PANEL_APPLET/MATE_PANEL_APPLET/g" ${FILENAME}
38             sed -i "s/MateMatePanelApplet/MatePanelApplet/g" ${FILENAME}
40             sed -i "s/gnome/mate/g" ${FILENAME}
41             sed -i "s/GNOME/MATE/g" ${FILENAME}
42             sed -i "s/Gnome/Mate/g" ${FILENAME}
44             sed -i "s/Metacity/Marco/g" ${FILENAME}
45             sed -i "s/metacity/marco/g" ${FILENAME}
46             sed -i "s/METACITY/MARCO/g" ${FILENAME}
48             sed -i "s/Nautilus/Caja/g" ${FILENAME}
49             sed -i "s/nautilus/caja/g" ${FILENAME}
50             sed -i "s/NAUTILUS/CAJA/g" ${FILENAME}
52             sed -i "s/Zenity/MateDialog/g" ${FILENAME}
53             sed -i "s/zenity/matedialog/g" ${FILENAME}
54             sed -i "s/ZENITY/MATEDIALOG/g" ${FILENAME}
56             sed -i "s/MATE|Utilities/GNOME|Utilities/g" ${FILENAME}
57             sed -i "s/MATE|Desktop/GNOME|Desktop/g" ${FILENAME}
58             sed -i "s/MATE|Applets/GNOME|Applets/g" ${FILENAME}
59             sed -i "s/MATE|Applications/GNOME|Applications/g" ${FILENAME}
60             sed -i "s/MATE|Multimedia/GNOME|Multimedia/g" ${FILENAME}
62             sed -i "s/libnotify/libmatenotify/g" ${FILENAME}
63             sed -i "s/LIBNOTIFY/LIBMATENOTIFY/g" ${FILENAME}
64             sed -i "s/Libnotify/Libmatenotify/g" ${FILENAME}
66             sed -i "s/bonobo/matecomponent/g" ${FILENAME}
67             sed -i "s/Bonobo/MateComponent/g" ${FILENAME}
68             sed -i "s/BONOBO/MATECOMPONENT/g" ${FILENAME}
69             sed -i "s/bonoboui/matecomponentui/g" ${FILENAME}
70             sed -i "s/BONOBOUI/MATECOMPONENTUI/g" ${FILENAME}
72             sed -i "s/gconf/mateconf/g" ${FILENAME}
73             sed -i "s/GConf/MateConf/g" ${FILENAME}
74             sed -i "s/GCONF/MATECONF/g" ${FILENAME}
76             sed -i "s/pkmateconfig/pkgconfig/g" ${FILENAME}
77             sed -i "s/PKMATECONFIG/PKGCONFIG/g" ${FILENAME}
79             sed -i "s/gweather/mateweather/g" ${FILENAME}
80             sed -i "s/GWeather/MateWeather/g" ${FILENAME}
81             sed -i "s/GWEATHER/MATEWEATHER/g" ${FILENAME}
83             sed -i "s/ORBit/MateCORBA/g" ${FILENAME}
84             sed -i "s/orbit/matecorba/g" ${FILENAME}
85             sed -i "s/ORBIT/MATECORBA/g" ${FILENAME}
87             sed -i "s/panel-applet/mate-panel-applet/g" ${FILENAME}
88             sed -i "s/panelapplet/matepanelapplet/g" ${FILENAME}
89             sed -i "s/panel_applet/mate_panel_applet/g" ${FILENAME}
90             sed -i "s/PANEL_APPLET/MATE_PANEL_APPLET/g" ${FILENAME}
91             sed -i "s/PanelApplet/MatePanelApplet/g" ${FILENAME}
93             sed -i "s/mate-mate-panel-applet/mate-panel-applet/g" ${FILENAME}
94             sed -i "s/matematepanelapplet/matepanelapplet/g" ${FILENAME}
95             sed -i "s/mate_mate_panel_applet/mate_panel_applet/g" ${FILENAME}
96             sed -i "s/MATE_MATE_PANEL_APPLET/MATE_PANEL_APPLET/g" ${FILENAME}
97             sed -i "s/MateMatePanelApplet/MatePanelApplet/g" ${FILENAME}
99             sed -i "s/soup-mate/soup-gnome/g" ${FILENAME}
100             sed -i "s/SOUP_TYPE_MATE_FEATURES_2_26/SOUP_TYPE_GNOME_FEATURES_2_26/g" ${FILENAME}
101             sed -i "s/mateconfaudiosink/gconfaudiosink/g" ${FILENAME}
102             sed -i "s/mateconfvideosink/gconfvideosink/g" ${FILENAME}
104             sed -i "s/TAMATECONFIG/TAGCONFIG/g" ${FILENAME}
105         fi
106     done
108     mv src/nautilus-extension.c src/caja-extension.c
109     mv src/nautilus-makepkg.c src/caja-makepkg.c
110     mv src/nautilus-makepkg.h src/caja-makepkg.h
111     mv src/nautilus-makepkg.schemas.in src/caja-makepkg.schemas.in
114         ./configure --prefix=/usr \
115                 --sysconfdir=/etc \
116                 --localstatedir=/var || return 1
118         make -s || return 1
119         make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
121         install -m 755 -d "${pkgdir}/usr/share/mateconf/schemas"
122         mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" "${pkgdir}"/etc/mateconf/schemas/*.schemas || return 1
123         rm -rf "${pkgdir}/etc"