aboutsummaryrefslogtreecommitdiffstats
path: root/main/statserial/APKBUILD
blob: ef88e75eecffa80440b4e393bbee12ca7b76dd59 (plain) (blame)
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
41
42
43
44
45
46
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=statserial
pkgver=1.1
pkgrel=4
pkgdesc="Display serial port modem status lines"
url="http://sunsite.unc.edu/pub/Linux/system/Serial"
arch="all"
license="GPL"
depends=""
depends_dev="ncurses-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://ibiblio.org/pub/linux/system/serial/statserial-$pkgver.tar.gz
	statserial-1.patch
	statserial-c.patch
	makefile.patch
	"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i -e "s/\/local//" Makefile
}

build() {
	cd "$_builddir"
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CC="${CC:-gcc}" || return 1
}

package() {
	cd "$_builddir"
	mkdir -p $pkgdir/usr/bin
	install -m755 $pkgname $pkgdir/usr/bin/$pkgname
}

md5sums="bcd90fb0881c64024396bf1070de7e64  statserial-1.1.tar.gz
e59a2c9bdc4e367f7720ae38f363b152  statserial-1.patch
6762523b1786ad7c52f9c2263023eedd  statserial-c.patch
b8d7c2d254a2266e3ece7e2c3be69d31  makefile.patch"