aboutsummaryrefslogtreecommitdiffstats
path: root/main/statserial/APKBUILD
blob: e89ca26381505bcba7291a3e8c0834cf91b86e7d (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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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
}

sha512sums="070ec4b6fb4a432fd406571319d9431d55c6dd43ee9298c1907011038a57dd3efd5def434aeb6884fb195cc90aa961d2ad2ff0567c9c69173e6f4adc0509a805  statserial-1.1.tar.gz
109414f0f2d90d3f36e623752f53f17bf4b6aefe01091020559a2460d0922f6c0c0ee1cce10fcae01efd9730bd04b168ba58950893c99b674c2b80e28c6fe49b  statserial-1.patch
1ebd734fac9eed9af252436d9a625cf4cc5fa4d4c86d831de9e0d992c18419e75839b9bb7aec8d4df70402b026ad2dc30c98509373ccc82ab50a22724b57d9fb  statserial-c.patch
3829c0b3112c2534a98a7edd2bf56c975d28be59ba0562e8030286e325b9d6ac5a5efa32dca426c518d508a31d8b496881751c0084067e7a33f97d06447b5c51  makefile.patch"