Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Que Quotion <quequotion@mailinator.com>
- pkgname=plank-themer-git
- _gitname=plank-themer
- pkgver=6b66d2d
- pkgrel=1
- pkgdesc="A small program that allows you to change Plank Dock themes without any additional consumption of resources"
- arch=('i686' 'x86_64')
- url="http://rhoconlinux.github.io/plank-themer/"
- license=('LGPL')
- depends=('bash' 'plank')
- makedepends=('bash')
- provides=("plank-themer=${pkgver}" "plank-themer-git=${pkgver}")
- conflicts=()
- replaces=('plank-themer')
- install=plank-themer.install
- source=('git://github.com/rhoconlinux/plank-themer')
- sha512sums=('SKIP')
- pkgver() {
- cd "${_gitname}"
- git describe --always | sed 's/-/./g'
- }
- prepare() {
- rm -rf ${_gitname}/themes-repo/Themes/Pantheon # Conflicts with plank-theme-pantheon(-bzr); probably not as up-to-date.
- }
- package() {
- # This should go in /usr/share/somewhere, but the scripts aren't set up for that.
- # Tried "install -Ddm644 -o ${USER} -g ${USER}", but "sudo pacman -U plank-themer-git"
- # gives a warning about incorrect permissions and the ownership gets scrambled.
- # Installing everything as root in ${USER}'s home and fixing it in post_install() seems
- # to be the only option, but that doesn't work either.
- install -Dd ${pkgdir}${HOME}/.config/plank/dock1/theme_index
- for i in ${_gitname}/theme_index/*
- do
- if [[ -d ${i} ]]; then
- install -Dd ${pkgdir}${HOME}/.config/plank/dock1/theme_index/$(basename ${i})
- install -D ${i}/* ${pkgdir}${HOME}/.config/plank/dock1/theme_index/$(basename ${i})/
- else
- install -D ${i} ${pkgdir}${HOME}/.config/plank/dock1/theme_index/
- fi
- done
- # This should go in /usr/share/somewhere, but the scripts aren't set up for that.
- # Tried "install -Ddm644 -o ${USER} -g ${USER}", but "sudo pacman -U plank-themer-git"
- # gives a warning about incorrect permissions and the ownership gets scrambled.
- # Installing everything as root in ${USER}'s home and fixing it in post_install() seems
- # to be the only option, but that doesn't work either.
- install -Dd ${pkgdir}${HOME}/.config/plank/dock1/themes-repo
- for i in ${_gitname}/themes-repo/Themes/*/
- do
- install -Dd ${pkgdir}${HOME}/.config/plank/dock1/themes-repo/$(basename ${i})
- install -D ${i}/* ${pkgdir}${HOME}/.config/plank/dock1/themes-repo/$(basename ${i})/
- done
- # No trouble here!
- for i in ${_gitname}/themes-repo/Themes/*/
- do
- install -Ddm644 ${pkgdir}/usr/share/plank/themes/$(basename ${i})
- install -m664 ${i}/* ${pkgdir}/usr/share/plank/themes/$(basename ${i})/
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement