summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Goto2018-08-16 16:06:16 +0200
committerPhilip Goto2018-08-16 16:18:31 +0200
commit3f4eb4eb9e5a859a5153ab4fc98b42f04ce6ac5a (patch)
tree3f6f9fa4683381bd844d8d9a922ac1d70073ab71
parent253e9582a1549b66988eff9d7efb4f67b8df8dd1 (diff)
downloadaur-3f4eb4eb9e5a859a5153ab4fc98b42f04ce6ac5a.tar.gz
Update to new build system
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD51
2 files changed, 44 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2e569a8228..6066e24b179 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,16 @@ pkgbase = cros-adapta-gtk-theme-git
url = https://chromium.googlesource.com/chromiumos/third_party/cros-adapta/
arch = any
license = GPL2
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = inkscape>=0.91
+ makedepends = gdk-pixbuf2>=2.32.2
+ makedepends = glib2>=2.48.0
+ makedepends = libsass>=3.3
+ makedepends = libxml2
+ makedepends = pkgconf
+ makedepends = sassc>=3.3
+ makedepends = git
depends = gtk-engine-murrine
depends = gtk3
provides = cros-adapta-gtk-theme
diff --git a/PKGBUILD b/PKGBUILD
index 8370618e56f..4c1e2c59b6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,48 @@
# Maintainer: Philip Goto <philip.goto@gmail.com>
-pkgname=cros-adapta-gtk-theme-git
+_pkgname=cros-adapta
+pkgname=${_pkgname}-gtk-theme-git
pkgver=latest
pkgrel=1
-pkgdesc='Adapta crostini theme, the Chrome OS GTK+ theme'
-arch=('any')
-url='https://chromium.googlesource.com/chromiumos/third_party/cros-adapta/'
-license=('GPL2')
-depends=('gtk-engine-murrine' 'gtk3')
-provides=('cros-adapta-gtk-theme')
-source=('git+https://chromium.googlesource.com/chromiumos/third_party/cros-adapta')
+pkgdesc="Adapta crostini theme, the Chrome OS GTK+ theme"
+url="https://chromium.googlesource.com/chromiumos/third_party/cros-adapta/"
+arch=(any)
+license=(GPL2)
+
+provides=(${_pkgname}-gtk-theme)
+makedepends=("autoconf"
+ "automake"
+ "inkscape>=0.91"
+ "gdk-pixbuf2>=2.32.2"
+ "glib2>=2.48.0"
+ "libsass>=3.3"
+ "libxml2"
+ "pkgconf"
+ "sassc>=3.3"
+ "git")
+depends=(gtk-engine-murrine
+ gtk3)
+
+source=("git+https://chromium.googlesource.com/chromiumos/third_party/${_pkgname}")
sha256sums=('SKIP')
pkgver() {
- cd cros-adapta
+ cd ${_pkgname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
- git describe --tags --always | sed 's/-/.r/; s/-g/./'
+build() {
+ cd ${_pkgname}
+ tools/extract_adapta.sh
}
package() {
- cd cros-adapta
+ cd ${_pkgname}
- install -dm 755 "${pkgdir}"/usr/share/themes/cros-adapta
+ install -dm 755 "${pkgdir}"/usr/share/themes/cros-adapta
- cp -r assets "${pkgdir}"/usr/share/themes/cros-adapta/
- cp -r gtk-2.0 "${pkgdir}"/usr/share/themes/cros-adapta/
- cp -r gtk-3.0 "${pkgdir}"/usr/share/themes/cros-adapta/
- cp -r gtk-3.22 "${pkgdir}"/usr/share/themes/cros-adapta/
- cp index.theme "${pkgdir}"/usr/share/themes/cros-adapta/
+ cp -r gtk-2.0 "${pkgdir}"/usr/share/themes/cros-adapta/
+ cp -r gtk-3.0 "${pkgdir}"/usr/share/themes/cros-adapta/
+ cp -r gtk-3.22 "${pkgdir}"/usr/share/themes/cros-adapta/
+ cp index.theme "${pkgdir}"/usr/share/themes/cros-adapta/
}