summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d00a87eab4dfe163cd77c78b27905566909d635 (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
pkgname="serial-cli-git"
_pkgname="serial-cli"
pkgver=r12.7fb4785
pkgrel=1
pkgdesc="serial app"
arch=('any')
url="https://github.com/ToniLipponen/Serial-cli.git"
license=('MIT')
makedepends=(
	'git'
	'gcc'
	'make'
)
source=("${_pkgname}::git+https://github.com/ToniLipponen/Serial-cli.git")
sha512sums=("SKIP")
provides=("serial-cli")

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}"
	make build
}

package() {
	cd "${srcdir}/${_pkgname}"
	make install DESTDIR="$pkgdir" PREFIX="/usr"
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}