summaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-04 22:16:15 -0300
committerPerberos <[email protected]>2011-11-04 22:16:15 -0300
commitfff4ecc82f2bcfa7427596e7ad9c3769fcab040b (patch)
treeac4f1812a7991609c9c32c776daede2d8492f7b5 /distro
downloadmate-screensaver-fff4ecc82f2bcfa7427596e7ad9c3769fcab040b.tar.bz2
mate-screensaver-fff4ecc82f2bcfa7427596e7ad9c3769fcab040b.tar.xz
first commit
Diffstat (limited to 'distro')
-rw-r--r--distro/archlinux/PKGBUILD35
-rw-r--r--distro/archlinux/mate-screensaver.install18
2 files changed, 53 insertions, 0 deletions
diff --git a/distro/archlinux/PKGBUILD b/distro/archlinux/PKGBUILD
new file mode 100644
index 0000000..e642901
--- /dev/null
+++ b/distro/archlinux/PKGBUILD
@@ -0,0 +1,35 @@
+pkgname=mate-screensaver
+pkgver=2.10.2
+pkgrel=1
+pkgdesc='Screensaver for MATE'
+arch=('i686' 'x86_64')
+url='http://system-tools-backends.freedesktop.org/'
+license=('GPL')
+depends=('gtk2' 'dbus' 'mate-conf' 'mate-desktop' 'mate-menus')
+makedepends=('pkgconfig' 'intltool')
+options=('!libtool' '!emptydirs')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.10/${pkgname}.tar.gz)
+#install=system-tools-backends.install
+sha256sums=('5b0dabd93635c9cb15bb150cb2f2093232764a97227fe9b4f927db640d35775f')
+
+build() {
+ cd ${pkgname}
+
+ ./configure \
+ --prefix=/usr --sysconfdir=/etc \
+ --mandir=/usr/share \
+ --disable-static \
+ --libexecdir=/usr/lib/${pkgname} || return 1
+
+ make || return 1
+}
+
+package() {
+ cd ${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-screensaver.install b/distro/archlinux/mate-screensaver.install
new file mode 100644
index 0000000..962976d
--- /dev/null
+++ b/distro/archlinux/mate-screensaver.install
@@ -0,0 +1,18 @@
+pkgname=mate-screensaver
+
+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}
+}