summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e9eb25319680d4bec1c0ab46d34918fa8c7a692 (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
# Maintainer: Bagić Jure <jure.bagic@gmail.com>
pkgname='ashe'
pkgver=r39.121dc4d
pkgrel=1
pkgdesc="Modern UNIX async shell."
arch=("x86_64")
url="https://github.com/SigmaBale/ashe"
license=("GPL3")
depends=("glibc")
makedepends=("git" "cmake")
source=("${pkgname}-${pkgver}::git+${url}")
md5sums=('SKIP')

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

build() {
    cd "{$pkgname}"
    mkdir 'build'
    cd 'build'
    cmake ..
    make
}

package() {
	cd "${pkgname}"
    install -Dm644 -t "${pkgdir}/usr/bin/${pkgname}" ./ashe 
    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README* 
    install -Dm644 -t "${pkgdir}/usr/share/license/${pkgname}" LICENSE* 
}