Commit 9dcad46f authored by Natanael Copa's avatar Natanael Copa
Browse files
parents 8ebaae0e 4471db58
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=setserial
pkgver=2.17
pkgrel=0
pkgdesc="Serial driver config tool"
url="http://sourceforge.net/projects/setserial/"
license="GPL"
depends=
makedepends="groff"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
setserial.patch
"
arch="all"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/setserial.patch
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8
make DESTDIR="$pkgdir" install
}
md5sums="c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz
99919d3be7c1550721494070a7ace66a setserial.patch"
diff -ur setserial-2.17/Makefile.in setserial-2.17-new/Makefile.in
--- setserial-2.17/Makefile.in 2000-01-27 16:39:07.000000000 +0100
+++ setserial-2.17-new/Makefile.in 2005-03-09 20:53:31.000000000 +0100
@@ -17,6 +17,11 @@
INCS = -I.
TAR = tar
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+mandir=@mandir@
+
all: setserial setserial.cat
setserial: setserial.c
@@ -26,9 +31,9 @@
nroff -man setserial.8 > setserial.cat
install: setserial setserial.8
- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
- $(STRIP) $(DESTDIR)/bin/setserial
- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8
+ $(INSTALL_PROGRAM) setserial $(DESTDIR)$(bindir)
+ $(STRIP) $(DESTDIR)$(bindir)/setserial
+ $(INSTALL_DATA) setserial.8 $(DESTDIR)$(mandir)/man8
clean:
$(RM) setserial setserial.o setserial.cat *~
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment