# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
setvar pkgname = 'setserial'
setvar pkgver = '2.17'
setvar pkgrel = '0'
setvar pkgdesc = ""Serial driver config tool""
setvar url = ""http://sourceforge.net/projects/setserial/""
setvar license = ""GPL""
setvar depends = ''
setvar makedepends = ""groff""
setvar install = ''
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	setserial.patch
	""
setvar arch = ""all""

setvar _builddir = ""$srcdir"/$pkgname-$pkgver"

proc prepare {
	cd $_builddir
	patch -p1 -i "$srcdir"/setserial.patch
}

proc build {
	cd $_builddir
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

proc package {
	cd $_builddir
	mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8
	make DESTDIR="$pkgdir" install
}

setvar md5sums = ""c4867d72c41564318e0107745eb7a0f2  setserial-2.17.tar.gz
99919d3be7c1550721494070a7ace66a  setserial.patch""