diff options
author | Adrian Perez de Castro | 2019-08-19 11:23:52 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2019-08-19 11:23:52 +0300 |
commit | 520a0e21deab5d820d6c61e461145eb8b65df4e5 (patch) | |
tree | 33d82a617f759b9057ab4e5a925fef61d4ee354f | |
parent | e2e1582f905f5c38a6204d0bb8c6e2ea098f9301 (diff) | |
download | aur-520a0e21deab5d820d6c61e461145eb8b65df4e5.tar.gz |
Fix package, avoid dangling symlinks
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 32 insertions, 23 deletions
@@ -1,6 +1,6 @@ pkgbase = pocillo-gtk-theme-git pkgdesc = Theme for the Budgie Desktop that has Material Design elements and styled using the Arc colour palette - pkgver = 0.5 + pkgver = 0.6.r15.gaa800c9 pkgrel = 1 url = https://github.com/UbuntuBudgie/pocillo-gtk-theme arch = any @@ -20,10 +20,9 @@ pkgbase = pocillo-gtk-theme-git depends = gtk3 optdepends = budgie-desktop: The Budgie desktop optdepends = gdk-pixbuf2 - optdepends = gtk-engine-murrine provides = pocillo-gtk-theme conflicts = pocillo-gtk-theme - source = git+https://github.com/UbuntuBudgie/pocillo-gtk-theme.git + source = pocillo-gtk-theme-git::git+https://github.com/UbuntuBudgie/pocillo-gtk-theme sha256sums = SKIP pkgname = pocillo-gtk-theme-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..218620e2fb38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!/PKGBUILD +!/.SRCINFO +!/.gitignore @@ -1,35 +1,41 @@ pkgname=pocillo-gtk-theme-git -pkgver=0.5 +pkgver=0.6.r15.gaa800c9 pkgrel=1 pkgdesc='Theme for the Budgie Desktop that has Material Design elements and styled using the Arc colour palette' arch=('any') -url='https://github.com/UbuntuBudgie/pocillo-gtk-theme' -license=('GPL2') -depends=('gtk-engine-murrine' 'gtk3') -makedepends=('inkscape' 'optipng' 'gtk-engine-murrine' 'gdk-pixbuf2' 'git' 'libsass' 'sassc' 'make' 'glib2' 'libxml2' 'parallel') -optdepends=('budgie-desktop: The Budgie desktop' - 'gdk-pixbuf2' 'gtk-engine-murrine') -provides=('pocillo-gtk-theme') -conflicts=('pocillo-gtk-theme') -source=('git+https://github.com/UbuntuBudgie/pocillo-gtk-theme.git') +url=https://github.com/UbuntuBudgie/pocillo-gtk-theme +license=(GPL2) +depends=(gtk-engine-murrine gtk3) +makedepends=(inkscape optipng gtk-engine-murrine gdk-pixbuf2 git libsass sassc make glib2 libxml2 parallel) +optdepends=('budgie-desktop: The Budgie desktop' 'gdk-pixbuf2') +provides=(pocillo-gtk-theme) +conflicts=(pocillo-gtk-theme) +source=("${pkgname}::git+${url}") sha256sums=('SKIP') pkgver() { - cd pocillo-gtk-theme - - git describe --tags | sed 's/-/.r/; s/-g/./' + cd "${pkgname}" + ( + set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) } build() { - cd pocillo-gtk-theme - - make + cd "${pkgname}" + make -j$(nproc) } package() { - cd pocillo-gtk-theme - - make DESTDIR="${pkgdir}" install - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "${pkgname}" + make DESTDIR="${pkgdir}" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # Fix dangling symlink + local symlink + for symlink in $(find "${pkgdir}" -type l -name 'gtk-3.0') ; do + rm "${symlink}" + ln -vs 'gtk-3.22' "${symlink}" + done } |