# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> setvar pkgname = 'albatross-themes' setvar pkgver = '1.7.4' setvar pkgrel = '0' setvar pkgdesc = ""A clean minimalistic theme for Xfce, GTK 2 and 3"" setvar url = ""http://shimmerproject.org/project/albatross/"" setvar arch = ""noarch"" setvar license = ""GPLv2 or CC-BY-SA"" setvar makedepends = "$depends_dev" setvar subpackages = ""$pkgname-gtk2 $pkgname-gtk3 $pkgname-metacity $pkgname-xfwm4"" setvar source = ""albatross-$pkgver.tar.gz::https://github.com/shimmerproject/Albatross/archive/v$pkgver.tar.gz"" setvar _builddir = ""$srcdir"/Albatross-$pkgver" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir # Remove Unity theme rm -f gtk-3.0/apps/unity.css sed -i '/unity\.css/d' gtk-3.0/gtk.css } proc package { cd $_builddir mkdir -p "$pkgdir"/usr/share/themes/Albatross cp -pr * "$pkgdir"/usr/share/themes/Albatross } proc _mv { setvar pkgdesc = "$1" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $2""; setvar depends = '' local _i shift; shift mkdir -p "$subpkgdir"/usr/share/themes/Albatrossfor _i in @ARGV { msg "moving $_i" mv "$pkgdir"/usr/share/themes/Albatross/$_i \ "$subpkgdir"/usr/share/themes/Albatross || return 1 } } proc gtk2 { _mv "Albatross GTK2 themes" gtk2.0 gtk-2.0 setvar depends = ""gtk-murrine-engine"" } proc gtk3 { _mv "Albatross GTK3 themes" gtk3.0 gtk-3.0; } proc metacity { _mv "Albatross Metacity themes" metacity metacity-1; } proc xfwm4 { _mv "Albatross Xfce4 themes" xfwm4 xfwm4; } setvar md5sums = ""66e7dcf8efe689d9f40ac53b5fb245f6 albatross-1.7.4.tar.gz"" setvar sha256sums = ""ff40e28e164cb99f01b131ae3e79a07782e29a720535460e901ce305fa322ae1 albatross-1.7.4.tar.gz"" setvar sha512sums = ""3ec30f6c654e7e5ccc49cd7116c308329c5a4bd9027c90f6545ca73d4734e1339d1c79c0cb2a7489bb701ccb0623e6a0e72f22bd4c923bb32a75dd4f4337fcfd albatross-1.7.4.tar.gz""