diff options
author | Gaetan Bisson | 2015-06-08 11:11:07 -1000 |
---|---|---|
committer | Gaetan Bisson | 2015-06-08 11:11:07 -1000 |
commit | ffc86112bca94ada76680cd03666652326c5958a (patch) | |
tree | 4ed83dcce13222587a44659f3cdece58dee83b43 | |
download | aur-ffc86112bca94ada76680cd03666652326c5958a.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..eb999064e191 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = fdm-git + pkgdesc = Program to fetch mail and deliver it in various ways + pkgver = 20150605.808be67 + pkgrel = 1 + url = https://github.com/nicm/fdm + arch = i686 + arch = x86_64 + arch = armv7h + license = BSD + makedepends = git + depends = openssl + depends = tdb + provides = fdm + conflicts = fdm + source = git+https://github.com/nicm/fdm.git + sha1sums = SKIP + +pkgname = fdm-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2885ed194b83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Jeff Mickey <jeff@archlinux.org> +# Contributor: Grigorios Bouzakis <grbzks@gmail.com> + +pkgname=fdm-git +_pkgname=fdm +pkgver=20150605.808be67 +pkgrel=1 +pkgdesc='Program to fetch mail and deliver it in various ways' +url='https://github.com/nicm/fdm' +license=('BSD') +arch=('i686' 'x86_64' 'armv7h') +depends=('openssl' 'tdb') +makedepends=('git') +source=('git+https://github.com/nicm/fdm.git') +sha1sums=('SKIP') + +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +pkgver() { + cd "${srcdir}/${_pkgname}" + git log -1 --format='%cd.%h' --date=short | tr -d - +} + +prepare() { + cd "${srcdir}/${_pkgname}" + bison parse.y + bison -d parse.y + mv parse.tab.h parse.h + mv parse.tab.c parse.c +} + +build() { + cd "${srcdir}/${_pkgname}" + ./autogen.sh + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="${pkgdir}" install + install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}" + cp -r examples "${pkgdir}/usr/share/doc/${pkgname}/examples/" + sed -n '3,17p' fdm.c > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |