blob: f6ac09aa6d83109a95241628d6d129df019adc2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>
pkgname=setserial
pkgver=2.17
pkgrel=5
pkgdesc="Allows to change various attributes of a serial device"
arch=('x86_64' 'i686')
url="http://setserial.sourceforge.net/"
license=('GPL')
depends=('glibc')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'setserial.patch'
'ioctls.patch')
md5sums=('c4867d72c41564318e0107745eb7a0f2'
'99919d3be7c1550721494070a7ace66a'
'cafef036654b3145638864026afd2c87')
prepare(){
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/setserial.patch"
patch -Np1 -i "${srcdir}/ioctls.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./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
}
|