From 218a2dc67a18563c3afa7f003f1a1980784241c0 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sat, 25 Aug 2012 16:19:47 -0500
Subject: setserial:  2.17 needed by linhes-config

---
 abs/core/setserial/PKGBUILD | 35 ++++++++++++++++++++++-------------
 1 file changed, 22 insertions(+), 13 deletions(-)

diff --git a/abs/core/setserial/PKGBUILD b/abs/core/setserial/PKGBUILD
index acab19d..590fa80 100644
--- a/abs/core/setserial/PKGBUILD
+++ b/abs/core/setserial/PKGBUILD
@@ -1,22 +1,31 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: aurelien <aurelien@archlinux.org>
+# $Id: PKGBUILD 137681 2011-09-10 12:01:21Z pierre $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
 # Contributor: Aurelien Foret <orelien@chez.com>
+
 pkgname=setserial
 pkgver=2.17
-pkgrel=2
-pkgdesc="Allows to change various attributes of a serial device."
+pkgrel=4
+pkgdesc="Allows to change various attributes of a serial device"
+arch=('i686' 'x86_64')
 url="http://setserial.sourceforge.net/"
+license=('GPL')
 depends=('glibc')
-
-arch=(i686)
-source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.patch)
-md5sums=('c4867d72c41564318e0107745eb7a0f2' '99919d3be7c1550721494070a7ace66a')
+source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        "$pkgname.patch")
+md5sums=('c4867d72c41564318e0107745eb7a0f2'
+         '99919d3be7c1550721494070a7ace66a')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
   patch -Np1 -i ../$pkgname.patch
-  ./configure --prefix=/usr
-  make || return 1
-  mkdir -p $startdir/pkg/usr/{bin,man/man8}
-  make DESTDIR=$startdir/pkg install
+  ./configure --prefix=/usr \
+              --mandir=/usr/share/man
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  install -d ${pkgdir}/usr/{bin,share/man/man8}
+  make DESTDIR="${pkgdir}" install
 }
-- 
cgit v0.12

