updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / dropbox-humanity-icons / PKGBUILD
blob9e8bc3cb0355ddb06ebaef9d38318b7652a26277
1 # Maintainer: Kao Dome <kaodome .:at:. gmail .:dot:. com>
3 pkgname=dropbox-humanity-icons
4 pkgver=1.0
5 pkgrel=3
6 pkgdesc="Notification icons for Dropbox matching the Humanity theme."
7 url="http://forums.dropbox.com/topic.php?id=7818"
8 arch=('any')
9 license=('unknown')
10 depends=('dropbox-experimental') # Until 0.8 branch goes stable.
11 conflicts=('dropbox-light-panel-icons' 'dropbox-dark-panel-icons' 'dropbox-humanity-dark-icons')
12 source=(dropbox-humanity-notification-icons.tar.gz::http://dl.dropbox.com/u/62148/Misc/Dropbox%20Humanity%20Notification%20Icons.tar.gz)
13 sha256sums=('e764b6a633be27a4b79728e9cb0c1b6d9a60d9622d9c36f3848d293a80233776')
14 _destdir=$pkgdir/opt/dropbox
16 # The next variable allows you to choose if you want the icons to be system-wide or for the user building the package.
17 # If set to '1' they will be system-wide, and you'll have to install the package with the -f parameter (forzed install) as the
18 # replacement icons override the default ones. Note that if you choose them to be system-wide you'll have to reinstall the package
19 # every time you update the Dropbox one:
20 _systemwide=1
22 # Update destination and package name in case it's not built system-wide:
23 [ "$_systemwide" = "0" ] && _destdir=$pkgdir$HOME/.dropbox-dist/
24 [ "$_systemwide" = "0" ] && pkgname=dropbox-humanity-dark-icons-for-$USER
26 build() {
27         cd $srcdir/Dropbox\ Humanity\ Notification\ Icons/Humanity
28         mkdir -p $_destdir
29         cp -r icons $_destdir