PKGBUILDs/community/ser2net/PKGBUILD
2009-10-09 21:15:33 -05:00

26 lines
904 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
pkgname=ser2net
pkgver=2.5
pkgrel=1
pkgdesc="A proxy that allows telnet/tcp connections to be made to serial ports"
arch=(i686 x86_64)
url="http://sourceforge.net/projects/ser2net"
license=('GPL')
depends=('glibc')
backup=(etc/ser2net.conf)
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \
ser2net.init)
md5sums=('c11f36ff2e4c523be7b282f2f6d03638'
'78e776c2f3fa7e6ebe76f55fd429072c')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m 0644 ser2net.conf ${startdir}/pkg/etc/ser2net.conf && \
install -D -m 0755 ../ser2net.init ${startdir}/pkg/etc/rc.d/ser2net
}