diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-01 19:23:19 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:05 -0600 |
commit | 8e5744170c30d50ef1f3e3a3e52c595870c6e50a (patch) | |
tree | 797e4d33a4e0da370e68ebcd9a80b9daa0d7fa52 /test/librestage.d/PKGBUILD-split | |
parent | abac8a47a9e8bbccb7eb866c2fa0796cc5c39edc (diff) |
librestage: clean up, add unit tests
Contained the text "# TODO refactor this", and I can't just stick to that
fragment of code, can I?
I actually didn't change too much, despite what the diff looks like.
- move everything into a main() routine
- redo the usage() text
- rename a few variables
- fix where "${#repos}" should have been "${#repos[@]}"
- use [[...]] instead of [...]
- use "if A; then B; else C; fi" instead of "A || C && B"
- use CARCH instead of looping over every possible architecture.
- only look for files that match PKGEXT, as set in makepkg.conf
- pull out duplicate code for error handling
- don't warn when creating "staging/REPONAME"
Diffstat (limited to 'test/librestage.d/PKGBUILD-split')
-rw-r--r-- | test/librestage.d/PKGBUILD-split | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/librestage.d/PKGBUILD-split b/test/librestage.d/PKGBUILD-split new file mode 100644 index 0000000..a8ec1ef --- /dev/null +++ b/test/librestage.d/PKGBUILD-split @@ -0,0 +1,42 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=("md" "emacs-mdmua") +pkgver=0.81 +pkgrel=4 +arch=('any') +url="https://github.com/nicferrier/$_pkgname" +license=('GPL3') + +#makedepends=(python-distribute) + +#__gitbranch=1d69744 # This is the commit that is 0.81 +__gitbranch=455b6b4 # this is currently HEAD (has bugfixes) +#source=("nicferrier-md-${__gitbranch}.tar.gz::https://github.com/nicferrier/$pkgname/tarball/${__gitbranch}") + +#build() { +# cd "${srcdir}/nicferrier-md-${__gitbranch}" +# +# # fix typo +# sed -i 's/pyprofyfs/pyproxyfs/' setup.py +#} + +package_md() { + pkgdesc="A maildir client and library." + depends=('python' 'python-pyproxyfs') + +# cd "${srcdir}/nicferrier-md-${__gitbranch}" +# python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_emacs-mdmua() { + pkgdesc="An Emacs mail user agent (MUA) build around md." + pkgver='0.72' + depends=("md=0.81" 'emacs>=24') + +# cd "${srcdir}/nicferrier-md-${__gitbranch}" +# cd useragents/emacs +# install -d ${pkgdir}/usr/share/emacs/site-lisp +# install -m 644 *.el ${pkgdir}/usr/share/emacs/site-lisp +} + +#md5sums=('452727348df2f51d7eddade709aceb1c') |