From c58100e56746f7b0fbf78af66766c48239c7887a Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 16 Feb 2014 02:32:57 +0100 Subject: Dump... --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ elementary-xfce-icons-git.install | 17 +++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 elementary-xfce-icons-git.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..460e882 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 15:02:16 UTC 2015 +pkgbase = elementary-xfce-icons-git + pkgdesc = Elementary icon-theme with improved Xfce support + pkgver = 0.3_73_g082b3d4 + pkgrel = 1 + url = https://github.com/shimmerproject/elementary-xfce + install = elementary-xfce-icons-git.install + arch = any + license = GPL2 + makedepends = git + depends = gtk-update-icon-cache + conflicts = elementary-xfce-icons + source = elementary-xfce-icons-git::git+https://github.com/shimmerproject/elementary-xfce + md5sums = SKIP + +pkgname = elementary-xfce-icons-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..74c70cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Raphael Scholer + +pkgname=elementary-xfce-icons-git +pkgver=0.3_73_g082b3d4 +pkgrel=1 +pkgdesc='Elementary icon-theme with improved Xfce support' +arch=('any') +url='https://github.com/shimmerproject/elementary-xfce' +license=('GPL2') +makedepends=('git') +depends=('gtk-update-icon-cache') +conflicts=('elementary-xfce-icons') +install=elementary-xfce-icons-git.install +source=("$pkgname::git+https://github.com/shimmerproject/elementary-xfce") +md5sums=('SKIP') + +pkgver() { + cd $pkgname + echo "$(git describe --always |sed 's#-#_#g;s#v##')" +} + +package() { + mkdir -p "${pkgdir}/usr/share/icons" + + cd $pkgname + find ./ -type d -name "elementary-xfce*" -execdir cp -r {} "${pkgdir}/usr/share/icons/" \; + + cd "${pkgdir}/usr/share/icons" + find ./ -type f \( \ + -name "AUTHORS" \ + -o -name "CONTRIBUTORS" \ + -o -name "LICENSE" \ + \) \ + -delete +} + diff --git a/elementary-xfce-icons-git.install b/elementary-xfce-icons-git.install new file mode 100644 index 0000000..6ec605a --- /dev/null +++ b/elementary-xfce-icons-git.install @@ -0,0 +1,17 @@ +post_install() { + cd /usr/share/icons/ + find -type d -name "elementary-xfce*" -exec gtk-update-icon-cache -qtf {} \; +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + +pre_remove() { + cd /usr/share/icons/ + find -type f -path "./elementary-xfce*/icon-theme.cache" -delete +} -- cgit v1.2.3-70-g09d2