summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorHiroshi Hatake2015-11-15 14:41:44 +0900
committerHiroshi Hatake2015-11-15 14:41:44 +0900
commite74c9d8dfa917f38b6565588954583b9e5af9744 (patch)
tree59839e800cb854229014567d984049ad33965b06 /PKGBUILD
downloadaur-e74c9d8dfa917f38b6565588954583b9e5af9744.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a873a43364c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+pkgname=milter-manager-git
+pkgver=20151113.5989.9e358d6
+pkgrel=1
+pkgdesc="A milter to use milters effectively."
+arch=('x86' 'x86_64')
+url="http://milter-manager.sourceforge.net/"
+license=('GPL3' 'GFDL' 'LGPL3')
+depends=('sh')
+makedepends=('git' 'ruby-glib2' 'rrdtool' 'glib2'
+ 'autoconf' 'automake' 'libtool' 'pkg-config' 'intltool'
+ 'gtk-doc' 'gnome-doc-utils' 'inkscape' 'ruby' 'libevent')
+optdepends=('cutter-test_framework' 'ruby-rdtool' 'lcov')
+provides=('libev')
+conflicts=('libev')
+
+source=("$pkgname"::"git://github.com/milter-manager/milter-manager.git"
+ milter-manager.service)
+sha1sums=('SKIP'
+ 'SKIP')
+
+pkgver () {
+ _date=`date +"%Y%m%d"`
+ cd "${srcdir}/${pkgname}"
+ echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --enable-ruby-milter
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ install=milter-manager.install
+ make DESTDIR="$pkgdir/" install
+
+ # remove conflicting file
+ rm -f "$pkgdir"/usr/include/event.h
+
+ install -Dm644 ../milter-manager.service "$pkgdir"/usr/lib/systemd/system/milter-manager.service
+}