summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/setserial/PKGBUILD35
1 files 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
}