summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 639cbaaffe931b37bf2cc77f17e1109a059f3aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: <Fominykh Danila dancheg97@fmnx.su>

pkgname="flutter-git-clone"
pkgdesc="UI framework for crossplatform development (git version)"
license=("MIT")
pkgver="1.1"
pkgrel="1"
arch=("x86_64")
url="https://github.com/flutter/flutter"
makedepends=("git")
depends=("unzip")
source=("flutter::git+https://github.com/flutter/flutter")
sha256sums=("SKIP")

package() {
  find . -type f -exec install -Dm777 {} $pkgdir/usr/share/{} \; 
  rm -rf flutter
  install -Dm755 ../flutter.sh $pkgdir/usr/bin/flutter
}

post_install() {
  git config --global --add safe.directory /usr/share/flutter
  sudo chmod a+rwx -R /usr/share/flutter
}