diff options
author | Stefano Karapetsas <[email protected]> | 2011-12-14 10:13:54 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2011-12-14 10:13:54 +0100 |
commit | ef0467789bfc8406b57ba553e4d59f4d6c3f9be8 (patch) | |
tree | 09d541636a16cb38448fe6183289ebdc3080c1bf /distro | |
download | mate-utils-ef0467789bfc8406b57ba553e4d59f4d6c3f9be8.tar.bz2 mate-utils-ef0467789bfc8406b57ba553e4d59f4d6c3f9be8.tar.xz |
Moved from Mate-Extra repository
Diffstat (limited to 'distro')
-rw-r--r-- | distro/archlinux/PKGBUILD | 38 | ||||
-rw-r--r-- | distro/archlinux/mate-utils.install | 24 |
2 files changed, 62 insertions, 0 deletions
diff --git a/distro/archlinux/PKGBUILD b/distro/archlinux/PKGBUILD new file mode 100644 index 00000000..59e8921a --- /dev/null +++ b/distro/archlinux/PKGBUILD @@ -0,0 +1,38 @@ +pkgname=mate-utils +pkgver=2011.12.01 +pkgrel=1 +pkgdesc="Common MATE utilities for viewing disk usage, logs and fonts, taking screenshots, managing dictionaries and searching files" +arch=('i686' 'x86_64') +license=('GPL') +makedepends=('libgtop' 'libcanberra' 'libsm' 'mateconf' 'hicolor-icon-theme' 'desktop-file-utils') +makedepends=('mate-doc-utils' 'pkgconfig' 'intltool') +options=('!libtool' '!emptydirs') +install=mate-utils.install +url="http://matsusoft.com.ar/projects" +groups=('mate-extras') +source=(http://sourceforge.net/projects/matede/files/${pkgver}/${pkgname}.tar.gz/download) +sha256sums=('999caaa8a0dd07a23481d724a6295edf581471a422cfeeda39755a453dd35611') + +build() { + cd "${srcdir}/${pkgname}" + ./autogen.sh \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --libexecdir=/usr/lib/mate-utils \ + --localstatedir=/var \ + --disable-scrollkeeper \ + --disable-schemas-install || return 1 + make || return 1 +} + +package() { + cd "$srcdir/$pkgname" + + make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1 + + install -m755 -d "${pkgdir}/usr/share/mateconf/schemas" + mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/mateconf/schemas/*.schemas || return 1 + rm -f ${pkgdir}/etc/mateconf/schemas/*.schemas +} + diff --git a/distro/archlinux/mate-utils.install b/distro/archlinux/mate-utils.install new file mode 100644 index 00000000..38b41a73 --- /dev/null +++ b/distro/archlinux/mate-utils.install @@ -0,0 +1,24 @@ +pkgname=mate-utils + +post_install() { + usr/sbin/mateconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/mateconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} |