diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-27 03:22:28 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-27 03:22:28 +0000 |
commit | eb411a7c7cc929ada01019bd4c306116ce385693 (patch) | |
tree | 206efb6706787a041fee82bcef85d967f3cf58a5 /community/setserial | |
parent | 7858fe5d7a6544b96702d2bdb6f075481816109e (diff) |
Thu Mar 27 03:18:41 UTC 2014
Diffstat (limited to 'community/setserial')
-rw-r--r-- | community/setserial/PKGBUILD | 19 | ||||
-rw-r--r-- | community/setserial/ioctls.patch | 14 |
2 files changed, 28 insertions, 5 deletions
diff --git a/community/setserial/PKGBUILD b/community/setserial/PKGBUILD index 450bc064c..eb74a32df 100644 --- a/community/setserial/PKGBUILD +++ b/community/setserial/PKGBUILD @@ -1,24 +1,32 @@ -# $Id: PKGBUILD 102187 2013-12-06 12:40:45Z giovanni $ +# $Id: PKGBUILD 108319 2014-03-26 18:09:43Z giovanni $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Aurelien Foret <orelien@chez.com> pkgname=setserial pkgver=2.17 -pkgrel=4 +pkgrel=5 pkgdesc="Allows to change various attributes of a serial device" arch=('i686' 'x86_64') url="http://setserial.sourceforge.net/" license=('GPL') depends=('glibc') source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" - "$pkgname.patch") + 'setserial.patch' + 'ioctls.patch') md5sums=('c4867d72c41564318e0107745eb7a0f2' - '99919d3be7c1550721494070a7ace66a') + '99919d3be7c1550721494070a7ace66a' + 'cafef036654b3145638864026afd2c87') + +prepare(){ + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}/setserial.patch" + patch -Np1 -i "${srcdir}/ioctls.patch" +} build() { cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np1 -i ../$pkgname.patch ./configure --prefix=/usr \ --mandir=/usr/share/man make @@ -26,6 +34,7 @@ build() { package() { cd "${srcdir}/${pkgname}-${pkgver}" + install -d ${pkgdir}/usr/{bin,share/man/man8} make DESTDIR="${pkgdir}" install } diff --git a/community/setserial/ioctls.patch b/community/setserial/ioctls.patch new file mode 100644 index 000000000..36d16afd1 --- /dev/null +++ b/community/setserial/ioctls.patch @@ -0,0 +1,14 @@ +--- a/setserial.c 2000-01-27 16:40:52.000000000 +0100 ++++ b/setserial.c 2014-03-26 18:53:04.720749160 +0100 +@@ -15,10 +15,8 @@ + #include <termios.h> + #include <string.h> + #include <errno.h> +- +-#ifdef HAVE_ASM_IOCTLS_H + #include <asm/ioctls.h> +-#endif ++ + #ifdef HAVE_LINUX_HAYESESP_H + #include <linux/hayesesp.h> + #endif |