View difference between Paste ID: aqXdh18B and 1jFajfWX
SHOW: | | - or go back to the newest paste.
1
# Maintainer: Que Quotion <quequotion@mailinator.com>
2
3
pkgname=plank-themer-git
4
_gitname=plank-themer
5
pkgver=6b66d2d
6
pkgrel=1
7
pkgdesc="A small program that allows you to change Plank Dock themes without any additional consumption of resources"
8
arch=('i686' 'x86_64')
9
url="http://rhoconlinux.github.io/plank-themer/"
10
license=('LGPL')
11
depends=('bash' 'plank')
12
makedepends=('bash')
13
provides=("plank-themer=${pkgver}" "plank-themer-git=${pkgver}")
14
conflicts=()
15
replaces=('plank-themer')
16-
install=plank-themer.install
16+
source=('git://github.com/rhoconlinux/plank-themer'
17-
source=('git://github.com/rhoconlinux/plank-themer')
17+
	'Makefile'
18-
sha512sums=('SKIP')
18+
	'plank-themer.sh')
19
sha512sums=('SKIP'
20
            'b6562a7b69f4991d0e49c4bc9c79d5627fefcca6c95224acb28b17a0f7e20f0c65c7edd819641bd0ffe2ec063da4b2b3b6a7ac8d1229f21966874c8537e783bc'
21-
  cd "${_gitname}"
21+
            'f5637581a9373b878f5ba3b55cec156ab6a82c159f3af2f872a183cde4817a17ada0d8745d319fcdbb68d1a49417247b08d732e0fc0c77b679ac8b4c3f65924d')
22-
  git describe --always | sed 's/-/./g'
22+
23
pkgver() {
24
25
	cd "${_gitname}"
26-
  rm -rf ${_gitname}/themes-repo/Themes/Pantheon # Conflicts with plank-theme-pantheon(-bzr); probably not as up-to-date.
26+
	git describe --always | sed 's/-/./g'
27
28
}
29
30
31-
  # This should go in /usr/share/somewhere, but the scripts aren't set up for that.
31+
32-
  # Tried "install -Ddm644 -o ${USER} -g ${USER}", but "sudo pacman -U plank-themer-git"
32+
33-
  # gives a warning about incorrect permissions and the ownership gets scrambled.
33+
	rm -rf ${_gitname}/themes-repo/Themes/Pantheon # Conflicts with plank-theme-pantheon(-bzr); probably not as up-to-date.
34-
  # Installing everything as root in ${USER}'s home and fixing it in post_install() seems
34+
	cp "$srcdir/Makefile" ${_gitname}
35-
  # to be the only option, but that doesn't work either.
35+
	cp "$srcdir/plank-themer.sh" ${_gitname}
36-
  install -Dd ${pkgdir}${HOME}/.config/plank/dock1/theme_index
36+
37-
  for i in ${_gitname}/theme_index/*
37+
38-
    do
38+
39-
      if [[ -d ${i} ]]; then
39+
build() {
40-
        install -Dd ${pkgdir}${HOME}/.config/plank/dock1/theme_index/$(basename ${i})
40+
41-
        install -D ${i}/* ${pkgdir}${HOME}/.config/plank/dock1/theme_index/$(basename ${i})/
41+
	cd ${_gitname}
42-
      else
42+
	make DESTDIR="$pkgdir"
43-
        install -D ${i} ${pkgdir}${HOME}/.config/plank/dock1/theme_index/
43+
44-
      fi
44+
45-
    done
45+
46
package() {
47-
  # This should go in /usr/share/somewhere, but the scripts aren't set up for that.
47+
48-
  # Tried "install -Ddm644 -o ${USER} -g ${USER}", but "sudo pacman -U plank-themer-git"
48+
	cd ${_gitname}
49-
  # gives a warning about incorrect permissions and the ownership gets scrambled.
49+
	make DESTDIR="$pkgdir" install
50-
  # Installing everything as root in ${USER}'s home and fixing it in post_install() seems
50+
51-
  # to be the only option, but that doesn't work either.
51+