summaryrefslogtreecommitdiff
path: root/community/uucp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/uucp/PKGBUILD')
-rw-r--r--community/uucp/PKGBUILD23
1 files changed, 18 insertions, 5 deletions
diff --git a/community/uucp/PKGBUILD b/community/uucp/PKGBUILD
index b4b7ee31d..d8cf4e153 100644
--- a/community/uucp/PKGBUILD
+++ b/community/uucp/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 61375 2011-12-29 09:59:32Z spupykin $
+# $Id: PKGBUILD 91914 2013-05-29 10:32:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jick Nan <jick.nan@gmail.com>
pkgname=uucp
pkgver=1.07
-pkgrel=3.1
+pkgrel=4
pkgdesc="Taylor UUCP is a free implementation of UUCP and is the standard UUCP used on the GNU system"
arch=(i686 x86_64 'mips64el')
url="http://www.gnu.org/software/uucp/uucp.html"
@@ -16,11 +16,25 @@ backup=('etc/uucp/config'
source=(http://ftp.gnu.org/gnu/uucp/${pkgname}-${pkgver}.tar.gz)
md5sums=('64c54d43787339a7cced48390eb3e1d0')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's|${CC-cc} -E|${CC-cc} -E -O2|g' configure
+# sed -i \
+# -e '1,1i#include <unistd.h>' \
+# -e '1,1i#include <fcntl.h>' \
+# -e '1,1i#include <sys/types.h>' \
+# uuconf/rdlocs.c unix/{efopen,cusub,init}.c
+# sed -i '1,1i#include <sys/statvfs.h>' unix/fsusg.c
+}
- ./configure --prefix=/usr --mandir=/usr/share/man --with-newconfigdir=/etc/uucp
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --mandir=/usr/share/man --with-newconfigdir=/etc/uucp --sbindir=/usr/bin
make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 sample/config ${pkgdir}/etc/uucp/config
@@ -28,4 +42,3 @@ build() {
install -D -m644 sample/port ${pkgdir}/etc/uucp/port
mv ${pkgdir}/usr/info ${pkgdir}/usr/share/
}
-