PKGBUILDs/extra/davfs2/PKGBUILD
2011-02-01 00:50:01 -05:00

37 lines
1.4 KiB
Bash

# $Id: PKGBUILD 66598 2010-02-01 00:08:45Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# PlugApps: Kevin Mihelich <kevin@plugapps.com>
# - we require a fix for glibc212, courtesy of gentoo (yuck), but only because people can't program right
plugrel=1
pkgname=davfs2
pkgver=1.4.5
pkgrel=1
pkgdesc="File system driver that allows you to mount a WebDAV server as a local disk drive."
arch=(i686 x86_64)
url="http://savannah.nongnu.org/projects/davfs2"
license=('GPL')
depends=('neon')
backup=(etc/davfs2/davfs2.conf etc/davfs2/secrets)
source=(http://mirrors.zerg.biz/nongnu/davfs2/${pkgname}-${pkgver}.tar.gz
davfs2-1.4.5-glibc212.patch)
sha256sums=('28f0ce00ddaf1ab93aa9f39db8d9f932d194c676bc21c3c8c3e2bea7f21274de'
'f8e8bcc99d36a661b5363fcd9ceae5eaf18010f165afcebd443eb36c75801a01')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p0 -i ${srcdir}/davfs2-1.4.5-glibc212.patch
dav_user=nobody dav_group=network ./configure --prefix=/usr --sysconfdir=/etc --disable-debug || return 1
make || return 1
# Create some dirs
install -d -m755 "${pkgdir}/sbin"
make DESTDIR="${pkgdir}" install || return 1
rm -f ${pkgdir}/sbin/{u,}mount.davfs
ln -sf /usr/sbin/mount.davfs "${pkgdir}/sbin/mount.davfs"
ln -sf /usr/sbin/umount.davfs "${pkgdir}/sbin/umount.davfs"
rm -f ${pkgdir}/usr/share/davfs2/{BUGS,COPYING,FAQ,NEWS,TODO,ChangeLog,GPL,README,THANKS}
}