summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 593c56b65850849bdda5d883313bedf5b0747789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Maintainer: Pablo Lezaeta <prflr88@gmail.com>

pkgname=xubuntu-artwork
pkgver=15.10.4
pkgrel=1
_uver=wily
pkgdesc="Xubuntu themes and artwork"
arch=("any")
url="https://launchpad.net/xubuntu-artwork"
license=("GPL")
#depends=("xfce-theme-albatross" "xfce-theme-bluebird" "xfce-theme-greybird" "shimmer-wallpapers")
makedepends=("zip")
optdepends=("plymouth: For plymouth theme to work"
        "lightdm-gtk-greeter: For LightDM GTK-3 Greeter theme to work"
        "shimmer-wallpapers: Wallpapers not included in the main package"
        "xfce-theme-albatross: Official theming, git or stable versions are ok"
        "xfce-theme-bluebird: Official theming, git or stable version are ok"
        "xfce-theme-greybird: Official theming, git or stable version are ok"
	"elementary-xfce-icons: For matching icon theme, or if you want use the git version"
	"libreoffice: For the new elementary icon style")
source=("http://security.ubuntu.com/ubuntu/pool/universe/x/${pkgname}/${pkgname}_${pkgver}.tar.xz"
        "0001_Plymouth_dir.patch")

prepare() {
  cd "${srcdir}/xubuntu-artwork"
  patch -p1 -i "${srcdir}/0001_Plymouth_dir.patch"
}

package() {
  cd "${srcdir}/xubuntu-artwork"
  
  make DESTDIR="${pkgdir}" prefix=/usr \
	sbindir=/usr/bin bindir=/usr/bin \
	libdir=/usr/lib libexecdir=/usr/lib
}

package() {
  cd "${srcdir}/xubuntu-artwork"

  make DESTDIR="${pkgdir}" install

  install -dm755 "${pkgdir}/usr/"

  msg2 "Install plymouth theme."
  mkdir -p "${pkgdir}/usr/share/"
  cp -av lib/plymouth/ "${pkgdir}/usr/share/"

  msg2 "Install the rest of the files."
  cp -av usr/share/ "${pkgdir}/usr/"

  msg2 "Remove Elementary-Xfce bundled with this artwork, is hella outdated."
  rm -frv "${pkgdir}"/usr/share/icons

  msg2 "Move backdrops to a better place for Xfce 4.12+."
  mkdir -p "${pkgdir}/usr/share/backgrounds/xfce"
  mv -v "${pkgdir}"/usr/share/xfce4/backdrops/* "${pkgdir}"/usr/share/backgrounds/xfce

  msg2 "Remove redundant and empty files."
  rm -frv "${pkgdir}"/usr/share/xfce4/backdrops
}

# I use MD5 because is what "makepkg -g" give by default, blame Allan
md5sums=('0e1bf19add2d77190c744d8828e789e5'
         'c9a1b1997abf7d43dda91bf7991ed42c')