summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjun1232020-09-08 21:11:56 +0800
committeryjun1232020-09-08 21:11:56 +0800
commit200e0ca557464c68d5e3025ef99a0a56fbd5b259 (patch)
treedcbb32dc9b943b36da551d08195d42253cd609df
downloadaur-200e0ca557464c68d5e3025ef99a0a56fbd5b259.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD67
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..be936874a7c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = coolapk_flutter-git
+ pkgdesc = flutter coolapk
+ pkgver = v0.2.8+1.r1.g3274dfb
+ pkgrel = 1
+ url = https://github.com/clinux-co/coolapk_flutter
+ arch = any
+ license = unknown
+ makedepends = clang
+ makedepends = ninja
+ makedepends = flutter
+ makedepends = cmake
+ provides = coolapk_flutter
+ conflicts = coolapk_flutter
+ source = git+https://github.com/clinux-co/coolapk_flutter
+ sha256sums = SKIP
+
+pkgname = coolapk_flutter-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1833746e2e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: yjun <jerrysteve1101@gmail.com>
+
+pkgname=coolapk_flutter-git
+_gitname=${pkgname%-git}
+pkgver=v0.2.8+1.r1.g3274dfb
+pkgrel=1
+pkgdesc="flutter coolapk"
+arch=('any')
+url="https://github.com/clinux-co/coolapk_flutter"
+license=('unknown')
+makedepends=('clang'
+ 'ninja'
+ 'flutter'
+ 'cmake')
+provides=("$_gitname")
+conflicts=("$_gitname")
+source=("git+https://github.com/clinux-co/coolapk_flutter")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$_gitname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ flutter channel master
+ flutter upgrade
+ flutter config --enable-linux-desktop
+}
+
+build() {
+ cd ${_gitname}
+
+ flutter build linux
+}
+
+package() {
+ cd ${_gitname}
+
+ # install
+ install -dm755 ${pkgdir}/opt
+ mv build/linux/release/bundle ${pkgdir}/opt/${_gitname}
+
+ # link
+ install -dm755 ${pkgdir}/usr/bin
+ ln -s /opt/${_gitname}/flutter_coolapk ${pkgdir}/usr/bin/${_gitname}
+
+ # icon
+ install -Dm 644 assets/images/coolapk/coolapk_logo.png ${pkgdir}/usr/share/pixmaps/${_gitname}.png
+
+ # desktop entry
+
+ install -dm 755 "${pkgdir}/usr/share/applications"
+ cat > ${pkgdir}/usr/share/applications/${_gitname}.desktop << EOF
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Coolapk Flutter Desktop
+Comment=Coolapk Flutter Desktop
+Exec=${_gitname}
+Icon=${_gitname}
+Terminal=false
+EOF
+
+}
+
+# vim: set sw=2 ts=2 et: