diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -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: |