summaryrefslogtreecommitdiff
path: root/community/picocom/APKBUILD
blob: 374d3615f005440363d556b8266e47c31f867b77 (plain)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=picocom
pkgver=3.0
pkgrel=0
pkgdesc="Minimal dumb-terminal emulation program"
url="https://github.com/npat-efault/picocom"
arch="all"
license="GPL-2.0"
depends=""
makedepends=""
install=""
options="!check" # upstream doesn't have a test suite.
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/npat-efault/${pkgname}/archive/${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
		-C "$builddir"
}

package() {
	install -Dm755 "$builddir"/$pkgname \
		"$pkgdir"/usr/bin/$pkgname
	install -Dm644 "$builddir"/$pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1

	local file=
	for file in CONTRIBUTORS README.md TODO lowerrts.md; do
		install -Dm644 "$builddir"/$file \
			"$pkgdir"/usr/share/doc/$pkgname/$file
	done
}

sha512sums="3c22a7638be63cffcc3191479bd442a142e9b3d85815a000fa7ad7e04a4314f07331931d8f240f226ddb02dd15c79cd4fda98fc907629ad34820d481eb690bf0  picocom-3.0.tar.gz"