# Maintainer: Fredy GarcĂ­a # Contributor: Philip Goto pkgname=flutter pkgver=0.2.3 pkgrel=1 pkgdesc="A new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android." arch=("x86_64") url="https://${pkgname}.io" license=("custom:https://github.com/${pkgname}/${pkgname}/blob/master/LICENSE") depends=("glu" "java-environment" "lib32-libglvnd") optdepends=("android-sdk" "android-studio" "bash" "dart" "git" "intellij-idea-community-edition" "intellij-idea-ultimate-edition" "perl" "python" "sh") makedepends=("git" "python") backup=("opt/flutter/packages/flutter_test/pubspec.yaml" "opt/flutter/packages/flutter/pubspec.yaml") options=(!epmtydirs) install="${pkgname}.install" source=("${pkgname}-${pkgver}.tar.xz::https://storage.googleapis.com/flutter_infra/releases/beta/linux/${pkgname}_linux_v${pkgver}-beta.tar.xz" "${pkgname}.sh" "${pkgname}.csh") sha256sums=("4fe85a822093e81cb5a66c7fc263f68de39b5797b294191b6d75e7afcc86aff8" "1dea1952d386c43948b9970382c2da5b65b7870684b8ad2ad89124e873aa485a" "7ef10d753cfaac52d243549764a793f44f8284a1f4b11715ccd2fa915b026a6f") build() { cd "${srcdir}/${pkgname}" "bin/${pkgname}" doctor } package() { install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh" install -Dm755 "${srcdir}/${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh" install -d "${pkgdir}/opt/${pkgname}/" cp -ra "${srcdir}/${pkgname}" "${pkgdir}/opt/" find "${pkgdir}/opt/${pkgname}" -type d -exec chmod a+rx {} + find "${pkgdir}/opt/${pkgname}" -type f -exec chmod a+r {} + }