summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2018-03-27 20:39:52 +0200
committerMaxime Gauduin2018-03-27 20:39:52 +0200
commit19ffb4a12caf765a106fdec358656d51195085a6 (patch)
treefd2fb95fe4b6625816958185ec33d031d6867906
parent212390a2add0780f73840d42625e68e1804bf25f (diff)
downloadaur-19ffb4a12caf765a106fdec358656d51195085a6.tar.gz
Fix elementary-icon-theme-git
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD19
2 files changed, 17 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bbf68825cc6..163d799e1f2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
# Generated by mksrcinfo v8
-# Tue May 23 19:08:51 UTC 2017
+# Tue Mar 27 18:39:52 UTC 2018
pkgbase = elementary-icon-theme-git
pkgdesc = Named, vector icons for elementary OS
- pkgver = r1980.b9521515
+ pkgver = r2159.22235cb7
pkgrel = 1
url = https://github.com/elementary/icons
arch = any
groups = pantheon-unstable
license = GPL3
+ makedepends = cmake
makedepends = git
depends = gtk-update-icon-cache
depends = hicolor-icon-theme
diff --git a/PKGBUILD b/PKGBUILD
index 810b57a36b5..7fa8e5070bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
pkgname=elementary-icon-theme-git
-pkgver=r1980.b9521515
+pkgver=r2159.22235cb7
pkgrel=1
pkgdesc='Named, vector icons for elementary OS'
arch=('any')
@@ -9,7 +9,7 @@ url='https://github.com/elementary/icons'
license=('GPL3')
groups=('pantheon-unstable')
depends=('gtk-update-icon-cache' 'hicolor-icon-theme')
-makedepends=('git')
+makedepends=('cmake' 'git')
provides=('elementary-icon-theme')
conflicts=('elementary-icon-theme')
options=('!emptydirs')
@@ -22,10 +22,19 @@ pkgver() {
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
+prepare() {
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+}
+
package() {
- rm -rf elementary-icon-theme/{.git*,AUTHORS,CONTRIBUTORS,COPYING,README.md,icons/elementary/icon-theme.cache}
- install -dm 755 "${pkgdir}"/usr/share/icons
- cp -dr --no-preserve='ownership' elementary-icon-theme "${pkgdir}"/usr/share/icons/elementary
+ cd build
+
+ cmake ../elementary-icon-theme \
+ -DCMAKE_INSTALL_PREFIX='/usr'
+ make DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et: