blob: 930d7a5d47730c5eff0e912346d32aa1647281ef (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Vedant K <gamemaker0042 at gmail dot com>
# Contributor: Fredy GarcĂa <frealgagu at gmail dot com>
# Contributor: Philip Goto <philip dot goto at gmail dot com>
# Mostly copied from the `flutter` aur package
_pkgname=flutter
_pkgver=2.6.0-11.0.pre
pkgname=flutter-dev
pkgver=2.6.0_11.0.pre
pkgrel=1
epoch=
pkgdesc="A new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android"
arch=("any")
url="https://flutter.dev"
license=("custom" "BSD" "CCPL")
depends=("git" "glu" "java-environment" "libglvnd" "unzip")
optdepends=("android-sdk" "android-studio" "dart" "intellij-idea-community-edition" "intellij-idea-ultimate-edition" "perl" "python" "clang" "cmake" "gtk3" "ninja" "pkgconf")
makedepends=("python")
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${_pkgname}-beta")
backup=("opt/${_pkgname}/packages/${_pkgname}_test/pubspec.yaml" "opt/${_pkgname}/packages/${_pkgname}/pubspec.yaml")
options=("!emptydirs")
install="${_pkgname}.install"
source=("${_pkgname}-${_pkgver}.tar.gz::https://storage.googleapis.com/flutter_infra_release/releases/dev/linux/flutter_linux_${_pkgver}-dev.tar.xz"
"${_pkgname}.sh"
"${_pkgname}.csh")
sha256sums=('e0ecdd71671aa5cfabc4ff951fd33c47c89edce375d4bb203c7dc9a882941c94'
'1dea1952d386c43948b9970382c2da5b65b7870684b8ad2ad89124e873aa485a'
'7ef10d753cfaac52d243549764a793f44f8284a1f4b11715ccd2fa915b026a6f')
build() {
cd "${srcdir}/${_pkgname}"
"${srcdir}/${_pkgname}/bin/${_pkgname}" doctor
}
package() {
rm -rf "${srcdir}/${_pkgname}/bin/cache" "${srcdir}/${_pkgname}/.pub-cache"
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 -dm755 "${pkgdir}/opt/${_pkgname}"
install -dm755 "${pkgdir}/usr/bin"
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 {} +
chmod a+rw "${pkgdir}/opt/${_pkgname}/version"
ln -s "/opt/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}
|