diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a1272b7711e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Fri Nov 25 19:30:25 UTC 2016 +pkgbase = dovecot-xaps-plugin-git + pkgdesc = iOS Push Email for Dovecot + pkgver = 22.92c51b5 + pkgrel = 1 + url = https://github.com/st3fan/dovecot-xaps-plugin + arch = any + license = MIT + makedepends = git + depends = dovecot + source = git+https://github.com/st3fan/dovecot-xaps-plugin.git + sha512sums = SKIP + +pkgname = dovecot-xaps-plugin-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a878a423f5dd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Frederik Schwan <frederik dot schwan at linux dot com> + +pkgname=dovecot-xaps-plugin-git +_gitname=dovecot-xaps-plugin +pkgver=22.92c51b5 +pkgrel=1 +pkgdesc='iOS Push Email for Dovecot' +url='https://github.com/st3fan/dovecot-xaps-plugin' +arch=('any') +license=('MIT') +depends=('dovecot') +makedepends=('git') +source=("git+https://github.com/st3fan/dovecot-xaps-plugin.git") +sha512sums=('SKIP') + +pkgver() { + cd ${_gitname} + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +build() { + cd ${srcdir}/${_gitname} + make +} + +package() { + install -d -m 755 ${pkgdir}/usr/lib/dovecot/modules/ + install -d -m 755 ${pkgdir}/usr/share/doc/dovecot/example-config/conf.d/ + + install -D -m 644 ${srcdir}/${_gitname}/imap_xaps_plugin.so ${pkgdir}/usr/lib/dovecot/modules/ + install -D -m 644 ${srcdir}/${_gitname}/xaps_plugin.so ${pkgdir}/usr/lib/dovecot/modules/ + + install -D -m 644 ${srcdir}/${_gitname}/xaps.conf ${pkgdir}/usr/share/doc/dovecot/example-config/conf.d/30-xaps.conf +} |