diff options
author | root <root@rshg054.dnsready.net> | 2011-11-07 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-07 23:14:55 +0000 |
commit | effb26c3b1f00bf8bea4e2562f07f9a06eb67606 (patch) | |
tree | 428924ac7d0c871e4b7ca1fed9e221e5ef7b8081 /community/root | |
parent | a4d309341dbcd3c28ee68e818c1d5ef54114adf8 (diff) |
Mon Nov 7 23:14:55 UTC 2011
Diffstat (limited to 'community/root')
-rw-r--r-- | community/root/PKGBUILD | 22 | ||||
-rw-r--r-- | community/root/root.install | 26 |
2 files changed, 32 insertions, 16 deletions
diff --git a/community/root/PKGBUILD b/community/root/PKGBUILD index d45cbd58d..726a37137 100644 --- a/community/root/PKGBUILD +++ b/community/root/PKGBUILD @@ -3,24 +3,22 @@ pkgname=root pkgver=5.30.03 -pkgrel=1 +pkgrel=3 pkgdesc='C++ data analysis framework and interpreter from CERN.' arch=('i686' 'x86_64') url='http://root.cern.ch' license=('LGPL2.1') depends=('avahi' 'desktop-file-utils' 'ftgl' 'giflib' 'glew' 'graphviz' 'gsl' 'libldap' 'libmysqlclient' - 'libxft' 'postgresql-libs' 'python2' 'unixodbc' 'shared-mime-info' 'xmlrpc-c' 'xorg-fonts-75dpi' 'mesa' 'gcc-fortran') + 'libxft' 'postgresql-libs' 'python2' 'unixodbc' 'shared-mime-info' 'xmlrpc-c' 'xorg-fonts-75dpi' 'mesa' 'gcc-fortran' 'hicolor-icon-theme') makedepends=('fftw') install='root.install' source=("ftp://root.cern.ch/root/root_v${pkgver}.source.tar.gz" 'root.sh' 'rootd' - 'root.desktop' 'root.xml') -md5sums=('d2c39bf7640bdd26d4645c52c504cc24' +md5sums=('da46aac87047acc41a67b24c05fc465f' '0e883ad44f99da9bc7c23bc102800b62' 'efd06bfa230cc2194b38e0c8939e72af' - 'ac61b17395d75a2705fefa2ef841a6bf' 'e2cf69b204192b5889ceb5b4dedc66f7') build() { @@ -78,10 +76,20 @@ package() { ${pkgdir}/etc/profile.d/root.sh install -D ${srcdir}/rootd \ ${pkgdir}/etc/rc.d/rootd - install -D -m644 ${srcdir}/root.desktop \ - ${pkgdir}/usr/share/applications/root.desktop install -D -m644 ${srcdir}/root.xml \ ${pkgdir}/usr/share/mime/packages/root.xml + install -D -m644 ${srcdir}/root/build/package/debian/root-system-bin.desktop.in \ + ${pkgdir}/usr/share/applications/root-system-bin.desktop + # replace @prefix@ with /usr for the desktop + sed -e 's_@prefix@_/usr_' -i ${pkgdir}/usr/share/applications/root-system-bin.desktop + + install -D -m644 ${srcdir}/root/build/package/debian/root-system-bin.png \ + ${pkgdir}/usr/share/icons/hicolor/48x48/apps/root-system-bin.png + + # use a file that pacman can track instead of adding directly to ld.so.conf + install -d ${pkgdir}/etc/ld.so.conf.d + echo '/usr/lib/root' > ${pkgdir}/etc/ld.so.conf.d/root.conf + rm -rf ${pkgdir}/etc/root/daemons } diff --git a/community/root/root.install b/community/root/root.install index 457af7314..afabb7aea 100644 --- a/community/root/root.install +++ b/community/root/root.install @@ -1,17 +1,25 @@ post_install() { - if ! [ `grep '/usr/lib/root' etc/ld.so.conf` ]; then - echo "/usr/lib/root" >> etc/ld.so.conf - sbin/ldconfig -r . - fi - update-desktop-database >/dev/null update-mime-database /usr/share/mime >/dev/null + + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } pre_remove() { - cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot - mv /tmp/.pacroot etc/ld.so.conf - chmod 644 etc/ld.so.conf - sbin/ldconfig -r . + # leave for pre 5.30.03-3 + if [[ $(vercmp $1 5.30.03-3) == -1 ]]; then + cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot + mv /tmp/.pacroot etc/ld.so.conf + chmod 644 etc/ld.so.conf + sbin/ldconfig -r . + fi +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } |