diff options
| author | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-09 22:19:26 +0200 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-10 08:34:13 +0000 |
| commit | 620aeb38b9c7ceb759cd341088578ef4cf855de4 (patch) | |
| tree | a4da019f15a5c03b26edd46373827107ef1c5a8c /testing | |
| parent | 2a092ee0036bc6ac5378b30fb2ba1eea717b5792 (diff) | |
| download | aports-620aeb38b9c7ceb759cd341088578ef4cf855de4.tar.bz2 aports-620aeb38b9c7ceb759cd341088578ef4cf855de4.tar.xz | |
testing/lite-editor-plugins: new aport
https://github.com/rxi/lite-plugins
Plugins for the lite text editor
Split each plugin (other than language highlighting) into their own subpkg,
since installing a plugin will automatically enable it:
https://github.com/rxi/lite/issues/60
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/lite-editor-plugins/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/lite-editor-plugins/APKBUILD b/testing/lite-editor-plugins/APKBUILD new file mode 100644 index 0000000000..29e520fb35 --- /dev/null +++ b/testing/lite-editor-plugins/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=lite-editor-plugins +pkgver=0_git20200510 +_commit=3a19b1791a6a143aaad789adc18a2801875e37bb +pkgrel=0 +pkgdesc="Plugins for the lite text editor" +url="https://github.com/rxi/lite-plugins" +arch="noarch" +license="MIT" +depends="lite-editor" +options="!check" # no tests +source="$pkgname-$pkgver.tar.gz::https://github.com/rxi/lite-plugins/archive/$_commit.tar.gz" +builddir="$srcdir/lite-plugins-$_commit" + +# List of plugins. Installing a plugin means it's always enabled: +# https://github.com/rxi/lite/issues/60 . All functional plugins are +# listed here, language syntax plugins are always installed. +_plugins=" + autowrap + bracketmatch + colorpreview + detectindent + drawwhitespace + eval + gitstatus + gofmt + hidestatus + indentguide + lfautoinsert + lineguide + macmodkeys + selectionhighlight + sort + spellcheck + titleize + togglesnakecamel + unboundedscroll + " +for _x in $_plugins; do + subpackages="$subpackages $pkgname-$_x:_package_plugin" +done + +package() { + mkdir -p "$pkgdir"/usr/share/lite-editor/data + cp -r plugins "$pkgdir"/usr/share/lite-editor/data +} + +_package_plugin() { + local plugin="${subpkgname#$pkgname-}" + + pkgdesc="$pkgdesc ($plugin plugin)" + + depends="$pkgname" + + mkdir -p "$subpkgdir"/usr/share/lite-editor/data/plugins + mv "$pkgdir"/usr/share/lite-editor/data/plugins/$plugin.lua "$subpkgdir"/usr/share/lite-editor/data/plugins +} + +sha512sums="026fd478d2e04af0616271f5e175cdd167b3747e9339ec4f87182509dccfdd37f3ed67256e713b251a6896c7bbfb7731ff72b5b872dc0eabcb32b28e8d86f171 lite-editor-plugins-0_git20200510.tar.gz" |
