summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 272be279ae483ee1d320cf12d98860d1e3b2e0fd (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
25
26
27
28
29
30
31
32
33
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
# Contributor: Philip Goto <philip.goto@gmail.com>

pkgname=flutter
pkgver=beta
pkgrel=2
pkgdesc="Flutter is a new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android."
arch=("any")
url="https://${pkgname}.io"
license=("https://github.com/${pkgname}/${pkgname}/blob/master/LICENSE")
depends=("android-sdk")
optdepends=("android-studio" "intellij-idea-community-edition" "intellij-idea-ultimate-edition")
source=("${pkgname}::git+https://github.com/${pkgname}/${pkgname}#branch=${pkgver}"
        "${pkgname}.install"
        "${pkgname}.sh"
        "${pkgname}.csh")
sha256sums=("SKIP"
            "b8eb8c1a38e961984fe7d26fc83a86f6aa1b362c4187a1fef55ce5cbc68a8d84"
            "1dea1952d386c43948b9970382c2da5b65b7870684b8ad2ad89124e873aa485a"
            "7ef10d753cfaac52d243549764a793f44f8284a1f4b11715ccd2fa915b026a6f")

build() {
    cd "${srcdir}/${pkgname}"
    "bin/${pkgname}" doctor
}

package() {
  install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
  install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
  install -d "${pkgdir}/opt/${pkgname}/"
  cp -ra "${srcdir}/${pkgname}" "${pkgdir}/opt/"
  chown -R "${USER}":users "${pkgdir}/opt/${pgkname}"
}