Skip to content
Browse files

libmate PKGBUILD

  • Loading branch information...
1 parent 26ea093 commit 82ea41e412e7eff8d8d4678dcf8955b61eb76c9a @bickman2k bickman2k committed Mar 7, 2012
Showing with 72 additions and 0 deletions.
  1. +50 −0 libmate/PKGBUILD
  2. +22 −0 libmate/libmate.install
View
50 libmate/PKGBUILD
@@ -0,0 +1,50 @@
+pkgname=libmate
+pkgver=1.1.2
+pkgrel=1
+pkgdesc="Common libraries for MATE"
+arch=('i686' 'x86_64')
+license=('LGPL')
+depends=('ttf-freefont' 'mate-conf')
+makedepends=('mate-doc-utils' 'mate-common' 'mate-corba' 'mate-conf'
+ 'libmatecomponent' 'mate-mime-data' 'gvfs' 'mate-vfs') # 'libcanberra'
+options=('!emptydirs' '!libtool')
+url="http://matsusoft.com.ar/projects/mate/"
+groups=('mate')
+install=libmate.install
+
+# mirrors
+# http://cptl.org/mate/${pkgname}.tar.gz
+# http://hax0r.se/mate/${pkgname}.tar.gz
+# http://matsusoft.com.ar/uploads/gnu-linux/mate/${pkgname}.tar.gz
+# http://matsusoft.com.ar/projects/mate/source/${pkgname}.tar.gz
+
+source=(./libmate-1.1.2.tar.gz)
+sha256sums=('5f7e292077959faced44603abac696860978e5b5cab4b81f2ccca2adb82246cf')
+
+build() {
+ cd "${srcdir}/$pkgname"
+
+ # Optional Features:
+ # --enable-esd Enable ESounD (default=no)
+ # --enable-canberra Enable canberra (default=yes)
+ ./autogen.sh \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --libexecdir=/usr/lib/libmate \
+ --disable-canberra \
+ --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
+}
View
22 libmate/libmate.install
@@ -0,0 +1,22 @@
+pkgname=libmate
+
+post_install() {
+ usr/sbin/mateconfpkg --install ${pkgname}
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+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
+}

0 comments on commit 82ea41e

Please sign in to comment.
Something went wrong with that request. Please try again.