diff options
author | cornholio | 2015-06-30 09:42:48 -0400 |
---|---|---|
committer | cornholio | 2015-06-30 09:42:48 -0400 |
commit | 2c3e1a20c8c3f10149ea08108316f45ab7a57d42 (patch) | |
tree | eada2682e67634b6bac1c1ea20dda82e78074e27 | |
download | aur-2c3e1a20c8c3f10149ea08108316f45ab7a57d42.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4f412b6895fe --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mailpile-git + pkgdesc = A modern, fast web-mail client with user-friendly encryption and privacy features. + pkgver = r4459.829adbb + pkgrel = 1 + url = http://www.mailpile.is + arch = any + license = AGPL3 + depends = python2-pillow + depends = python2-lxml + depends = python2-jinja + depends = spambayes + depends = python2-pgpdump + provides = mailpile + conflicts = mailpile + source = git://github.com/pagekite/Mailpile.git + md5sums = SKIP + +pkgname = mailpile-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ccbf7b1a9173 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: cornholio <vigo.the.unholy.carpathian@gmail.com> + +pkgname=mailpile-git +pkgver=r4459.829adbb +pkgrel=1 +pkgdesc="A modern, fast web-mail client with user-friendly encryption and privacy features." +arch=('any') +license=('AGPL3') +depends=('python2-pillow' 'python2-lxml' 'python2-jinja' 'spambayes' 'python2-pgpdump') +url="http://www.mailpile.is" +provides=("mailpile") +conflicts=("mailpile") +source=('git://github.com/pagekite/Mailpile.git') +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/Mailpile" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + + cd "${srcdir}/Mailpile" + + # python2 fixes + find . -type f -exec sed -i 's^bin/python^bin/python2^g' {} \; + sed -i 's^python ^python2 ^g' Makefile + + # Set absolute paths for static files + sed -i "s^('static/^('/usr/share/mailpile/static/^g" mailpile/config.py + sed -i "s^'static/^'/usr/share/mailpile/static/^g" mailpile/defaults.py + sed -i '/os.path.dirname( # scripts/d' mp + sed -i 's^__file__))^"/usr/share/mailpile/mailpile")^g' mp + + # Compile bytecode + printf '#!/bin/env python2\nimport compileall\ncompileall.compile_dir("mailpile", force=1)' > compile.py + chmod +x compile.py + ./compile.py + +} + +package() { + + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/mailpile" + + cp -r "${srcdir}/Mailpile/static" "${pkgdir}/usr/share/mailpile/static" + cp -r "${srcdir}/Mailpile/mailpile" "${pkgdir}/usr/share/mailpile/" + cp -r "${srcdir}/Mailpile/locale" "${pkgdir}/usr/share/mailpile/" + cp "${srcdir}/Mailpile/mp" "${pkgdir}/usr/bin/" + + find "${pkgdir}/usr" -type f -exec chmod 644 {} \; + find "${pkgdir}/usr" -type d -exec chmod 755 {} \; + chmod 755 "${pkgdir}/usr/bin/mp" + +} |