summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e6758230bafdff8920e17d13743e28a5b77fc18 (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
# Maintainer: Tobias Heider <me@tobhe.de>

pkgname=opencu
pkgver=2
pkgrel=0
pkgdesc="A minimalistic serial terminal emulator"
arch=('any')
url="https://github.com/tobhe/opencu"
license=('ISC')
depends=('glibc' 'libevent')
makedepends=('cmake')
provides=('cu')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/tobhe/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('84e74f95dd8b5e281a0220d12310988d74fd2a7e45b9a7f6e6a2432cc73e9c13')

build() {
	cd $pkgname-$pkgver
	mkdir build
	cd build
	cmake -DCMAKE_BUILD_TYPE=Release ..
	make
}

package() {
	cd ${pkgname}-${pkgver}
	install -Dm644 cu.1 "${pkgdir}"/usr/share/man/man1/cu.1

	cd build
	install -Dm755 cu "${pkgdir}"/usr/bin/cu
}