diff options
author | Claudia Pellegrino | 2017-06-18 16:21:13 +0200 |
---|---|---|
committer | Claudia Pellegrino | 2017-06-18 16:39:37 +0200 |
commit | 07612a0814da1e1d75587277b24552f2fabc7a0b (patch) | |
tree | 8b42c70de0b063a5d55a9657180a166bdeb80f40 | |
download | aur-07612a0814da1e1d75587277b24552f2fabc7a0b.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | LICENSE | 5 | ||||
-rw-r--r-- | PKGBUILD | 103 | ||||
-rw-r--r-- | bash-it-git.install | 13 |
4 files changed, 134 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3d3c88e0abcb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = bash-it-git + pkgdesc = A community Bash framework + pkgver = r1 + pkgrel = 1 + url = https://github.com/Bash-it/bash-it + install = bash-it-git.install + arch = any + license = custom:undecided + source = LICENSE + sha512sums = SKIP + +pkgname = bash-it-git + diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000000..668e01daf114 --- /dev/null +++ b/LICENSE @@ -0,0 +1,5 @@ +As of 2017-05-06, the upstream project has not issued a license yet. + +See ongoing discussion on GitHub: + +https://github.com/Bash-it/bash-it/issues/512 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..54fc1092316f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,103 @@ +# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de> + +pkgname=bash-it-git +pkgver=master +pkgrel=1 +pkgdesc='A community Bash framework' +arch=('any') +url='https://github.com/Bash-it/bash-it' +license=('custom:undecided') +depends=('bash') +makedepends=() +checkdepends=() +optdepends=( + 'ruby: ruby integration' + 'rbenv: rbenv integration' +) +conflicts=('bash-it') +backup=() +options=() +install="${pkgname}.install" +changelog= +source=( + 'https://github.com/Bash-it/bash-it/tarball/master' + 'LICENSE' +) +sha512sums=( + 'SKIP' + 'SKIP' +) +noextract=("${pkgname}.tar.gz") + +build() { + tar -xz -C "${srcdir}" \ + -f "${srcdir}/${pkgname}.tar.gz" \ + --include '*/.editorconfig' \ + --include '*/aliases' \ + --include '*/completion' \ + --include '*/custom' \ + --include '*/lib' \ + --include '*/plugins' \ + --include '*/template' \ + --exclude '*/test/*' \ + --include '*/themes' \ + --include '*/CONTRIBUTING.md' \ + --include '*/README.md' \ + --include '*.sh' \ + --strip-components 1 + + rm "${srcdir}/${pkgname}.tar.gz" +} + +package() { + mkdir -p "${pkgdir}/usr/lib/${pkgname}" + mkdir -p "${pkgdir}/usr/share/${pkgname}" + mkdir -p "${pkgdir}/usr/share/doc/${pkgname}" + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + + cp --preserve-mode -t \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" \ + "${srcdir}/LICENSE" + + cp -r --preserve=mode -t "${pkgdir}/usr/lib/${pkgname}" \ + "${srcdir}"/{bash_it,install,uninstall}.sh \ + "${srcdir}"/{aliases,completion,custom,lib} \ + "${srcdir}"/{plugins,themes} + + cp -r --preserve=mode -t "${pkgdir}/usr/share/${pkgname}" \ + "${srcdir}"/template + cp --preserve=mode -t "${pkgdir}/usr/share/doc/${pkgname}" \ + "${srcdir}"/*.md + + _templatedir="${pkgdir}/usr/share/${pkgname}/home_template/.bash_it" + + for _file_type in aliases completion plugins; do + mkdir -p "${_templatedir}/${_file_type}/available" + + ln -fs \ + "${pkgdir}/usr/lib/${pkgname}/${_file_type}/available"/* \ + "${_templatedir}/${_file_type}/available/" + done + + cp --preserve=mode -t "${_templatedir}" \ + "${srcdir}/.editorconfig" + + mkdir -p "${_templatedir}"/{custom,lib,template,themes} + + ln -fs \ + "${pkgdir}/usr/lib/${pkgname}"/{bash_it,install,uninstall}.sh \ + "${pkgdir}/usr/share/doc/${pkgname}"/* \ + "${_templatedir}/" + + for _customizable_dir in custom lib themes; do + ln -fs \ + "${pkgdir}/usr/lib/${pkgname}/${_customizable_dir}"/* \ + "${_templatedir}/${_customizable_dir}/" + done + + ln -fs \ + "${pkgdir}/usr/share/${pkgname}/template"/* \ + "${_templatedir}/template/" + + cp -r --preserve=mode -t ~/ "${_templatedir}" +} diff --git a/bash-it-git.install b/bash-it-git.install new file mode 100644 index 000000000000..71b4410a9ae0 --- /dev/null +++ b/bash-it-git.install @@ -0,0 +1,13 @@ +post_install() { + msg2 'Note: To enable bash-it, run: ~/.bash_it/install.sh' + ~/.bash_it/install.sh --help >&2 +} + +post_remove() { + msg2 'Note: To complete removal, restore your' \ + 'original `~/.bashrc` file from `~/.bashrc.bak`.' +} + +post_upgrade() { + : +} |