summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKppqju772022-04-19 13:16:06 +0200
committerKppqju772022-04-19 13:16:06 +0200
commit13fa0ec54ab8184b966fbc418b3457fd170e0a56 (patch)
tree25ae06a29e40848129680b2f8caca81317649c69
parent7d2ce969dd1f99ba78a75fd5e6ba03b2be0cff15 (diff)
downloadaur-flutter-group-pacman-hook.tar.gz
Add git workaround for flutter version fetching
-rwxr-xr-x.SRCINFO5
-rwxr-xr-xPKGBUILD4
-rwxr-xr-xflutter-group-template.hook2
3 files changed, 5 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ece805a0182..b361837ef21 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
pkgbase = flutter-group-pacman-hook
pkgdesc = Pacman hook to fix permission after flutter install/upgrade
pkgver = 1
- pkgrel = 3
+ pkgrel = 4
arch = any
license = GPL
optdepends = flutter
source = flutter-group-template.hook
- sha512sums = 4873b30e77f4d4026fb680142c5066cdef86b24d8cdd1321772752d656622cac021bc260c060a28ad5796f8df9967441d304110193b48bf0e10aa947cac38fc3
+ sha512sums = 3d67f48bb56f4312c113daddbd6884c09371f3099a3ad466fb490f2e257dd9c6e8c6f1224de900a774f5bb6b50da2d0ebf1cf617b5077ddffefbff417edbc590
pkgname = flutter-group-pacman-hook
-
diff --git a/PKGBUILD b/PKGBUILD
index 3f56610300a..c2894e26a55 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
pkgname=flutter-group-pacman-hook
pkgver=1
-pkgrel=3
+pkgrel=4
pkgdesc="Pacman hook to fix permission after flutter install/upgrade"
arch=("any")
license=("GPL")
optdepends=("flutter")
source=(flutter-group-template.hook)
-sha512sums=('4873b30e77f4d4026fb680142c5066cdef86b24d8cdd1321772752d656622cac021bc260c060a28ad5796f8df9967441d304110193b48bf0e10aa947cac38fc3')
+sha512sums=('3d67f48bb56f4312c113daddbd6884c09371f3099a3ad466fb490f2e257dd9c6e8c6f1224de900a774f5bb6b50da2d0ebf1cf617b5077ddffefbff417edbc590')
_group=flutterusers
_path=/opt/flutter
diff --git a/flutter-group-template.hook b/flutter-group-template.hook
index b5bc5755134..2126ca28d28 100755
--- a/flutter-group-template.hook
+++ b/flutter-group-template.hook
@@ -8,4 +8,4 @@ Target = usr/share/libalpm/hooks/flutter-group.hook
[Action]
Description = Granting permission to group $FLUTTER_GROUP for flutter SDK ($FLUTTER_PATH)
When = PostTransaction
-Exec = /bin/sh -c 'chown -R :$FLUTTER_GROUP "$FLUTTER_PATH" && chmod -R g+w "$FLUTTER_PATH"'
+Exec = /bin/sh -c 'chown -R :$FLUTTER_GROUP "$FLUTTER_PATH" && chmod -R g+w "$FLUTTER_PATH" && git config --global --add safe.directory "$FLUTTER_PATH"'