summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-25 21:19:47 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-25 21:19:47 (GMT)
commit218a2dc67a18563c3afa7f003f1a1980784241c0 (patch)
treefd0855355cbc2bc7f2b126e97f1fbd7c703d90cd /abs
parent3ebd31443d1b888f6378831711c9d5c29b4fa288 (diff)
downloadlinhes_pkgbuild-218a2dc67a18563c3afa7f003f1a1980784241c0.zip
linhes_pkgbuild-218a2dc67a18563c3afa7f003f1a1980784241c0.tar.gz
linhes_pkgbuild-218a2dc67a18563c3afa7f003f1a1980784241c0.tar.bz2
setserial: 2.17 needed by linhes-config
Diffstat (limited to 'abs')
-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
}