summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Troy2015-07-08 23:23:03 +0100
committerGavin Troy2015-07-08 23:23:03 +0100
commit2442359df7da473fd56dcd36bc2c919e88acd338 (patch)
tree91f66fcf75e04d198ea98db3ab2f6c5673b2d074
downloadaur-2442359df7da473fd56dcd36bc2c919e88acd338.tar.gz
Init at 14.8.3
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD60
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..57a556b679f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = s-nail-git
+ pkgdesc = Commandline utility for sending and receiving email
+ pkgver = 14.8.3_x15_g47a1a5c
+ pkgrel = 1
+ url = http://sdaoden.users.sourceforge.net/code.html#s-nail
+ arch = i686
+ arch = x86_64
+ license = custom:BSD
+ makedepends = git
+ depends = krb5
+ depends = libidn
+ depends = openssl
+ optdepends = smtp-forwarder: alternatives for sending mail
+ provides = mailx
+ provides = heirloom-mailx
+ conflicts = mailx
+ conflicts = heirloom-mailx
+ backup = etc/mail.rc
+ source = git+https://gitlab.com/s-nail/s-nail.git
+ sha1sums = SKIP
+
+pkgname = s-nail-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ccbb29fd682
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Gavin Troy <gavtroy@fastmail.fm>
+# Based on heirloom-mailx PKGBUILD
+
+pkgname=s-nail-git
+pkgver=14.8.3_x15_g47a1a5c
+pkgrel=1
+pkgdesc="Commandline utility for sending and receiving email"
+arch=('i686' 'x86_64')
+url="http://sdaoden.users.sourceforge.net/code.html#s-nail"
+license=('custom:BSD')
+depends=('krb5' 'libidn' 'openssl')
+makedepends=('git')
+optdepends=('smtp-forwarder: alternatives for sending mail')
+provides=('mailx' 'heirloom-mailx')
+conflicts=('mailx' 'heirloom-mailx')
+backup=('etc/mail.rc')
+source=("git+https://gitlab.com/s-nail/s-nail.git")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd s-nail
+ # pacman treats "_" like a ".", so use "_x" to seperate the git tag.
+ # otherwise pacman may think XX.Y_git to XX.Y.Z_git is a downgrade
+ gitver=$(git describe --tags | cut -c 2-)
+ gitver=${gitver//-/_}; echo ${gitver/_/_x}
+}
+
+build() {
+ cd s-nail
+ CFLAGS+=" $CPPFLAGS"
+
+ if check_option "debug" "y"; then
+ config_target="CONFIG=DEVEL"
+ fi
+
+ make PREFIX=/usr \
+ SYSCONFDIR=/etc \
+ SYSCONFRC=/etc/mail.rc \
+ LIBEXECDIR=/usr/lib \
+ MAILSPOOL=/var/spool/mail \
+ WANT_AUTOCC=0 \
+ ${config_target:-} \
+ config
+
+ make -f mk.mk _update-version
+
+ make build
+}
+
+package() {
+ cd s-nail
+ make DESTDIR="${pkgdir}" chown=/usr/bin/true packager-install
+
+ ln -sf s-nail "${pkgdir}"/usr/bin/mail
+ ln -sf s-nail "${pkgdir}"/usr/bin/mailx
+ ln -sf s-nail.1.gz "${pkgdir}"/usr/share/man/man1/mail.1.gz
+ ln -sf s-nail.1.gz "${pkgdir}"/usr/share/man/man1/mailx.1.gz
+
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+}