diff options
author | XZS | 2015-08-06 14:43:27 +0200 |
---|---|---|
committer | XZS | 2015-08-06 14:43:27 +0200 |
commit | 45fc52d2eff2dc09cc892b9e65dfbf727315cd8c (patch) | |
tree | 5d58f8698d223000b8b9beed4cef8efd31c55369 | |
parent | c2ca54d65c4812eb7d99a74bb114cc5ae7e5bda0 (diff) | |
download | aur-45fc52d2eff2dc09cc892b9e65dfbf727315cd8c.tar.gz |
sort package functions
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -26,22 +26,6 @@ prepare() { pkgver() { jq -r .tag_name release | grep -o '[[:digit:].]*$' } -depends[gnomeshell]=gnome-shell - -package_20_version() { - local compatibles=($(\ - find -path ./pkg -type d -prune -o \ - -name metadata.json -exec grep -Pzo '(?s)(?<="shell-version": \[)[^\[\]]*(?=\])' '{}' \; | \ - tr '\n," ' '\n' | sed 's/3\.//g;/^$/d' | sort -n -t. -k 1,1)) - depends+=("gnome-shell>=3.${compatibles[0]}") - local max="${compatibles[-1]}" - if [ "3.$max" != $( - gnome-shell --version | grep -Po '(?<=GNOME Shell 3\.)[[:digit:]]+' - ) ]; then - depends+=("gnome-shell<3.$((${max%%.*} + 1))") - fi - unset depends[gnomeshell] -} package() { for function in $(declare -F | grep -Po 'package_[[:digit:]]+[[:alpha:]_]*$') do @@ -59,15 +43,6 @@ package_02_install() { msg2 'Installing extension code...' find -maxdepth 1 \( -iname '*.js*' -or -iname '*.css' -or -iname '*.ui' \) -exec install -Dm644 -t "$destdir" '{}' + } -if [ -z "$install" ] -then - install=gschemas.install -fi - -package_10_schemas() { - msg2 'Installing schemas...' - find -name '*.xml' -exec install -Dm644 -t "$pkgdir/usr/share/glib-2.0/schemas" '{}' + -} package_10_locale() { msg2 'Installing translations...' ( @@ -78,3 +53,28 @@ package_10_locale() { done ) } +if [ -z "$install" ] +then + install=gschemas.install +fi + +package_10_schemas() { + msg2 'Installing schemas...' + find -name '*.xml' -exec install -Dm644 -t "$pkgdir/usr/share/glib-2.0/schemas" '{}' + +} +depends[125]=gnome-shell + +package_20_version() { + local compatibles=($(\ + find -path ./pkg -type d -prune -o \ + -name metadata.json -exec grep -Pzo '(?s)(?<="shell-version": \[)[^\[\]]*(?=\])' '{}' \; | \ + tr '\n," ' '\n' | sed 's/3\.//g;/^$/d' | sort -n -t. -k 1,1)) + depends+=("gnome-shell>=3.${compatibles[0]}") + local max="${compatibles[-1]}" + if [ "3.$max" != $( + gnome-shell --version | grep -Po '(?<=GNOME Shell 3\.)[[:digit:]]+' + ) ]; then + depends+=("gnome-shell<3.$((${max%%.*} + 1))") + fi + unset depends[125] +} |