Skip to content

Commit

Permalink
libmate PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
bickman2k committed Mar 8, 2012
1 parent 26ea093 commit 82ea41e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
50 changes: 50 additions & 0 deletions 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
}
22 changes: 22 additions & 0 deletions 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.