summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e418e2aea734cf2330af3ca16b5d8bd105a5cc4c (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
# Maintainer: Bagić Jure <jure.bagic@gmail.com>
pkgname='ashe'
pkgver=r52.23ee691
pkgrel=2
pkgdesc="Modern UNIX async shell."
arch=("x86_64")
url="https://github.com/SigmaBale/ashe"
license=("GPL3")
depends=("glibc")
makedepends=("git" "cmake")
source=("${pkgname}::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 -p 'build'
    cd 'build'
    cmake ..
    make
}

package() {
	cd "${pkgname}"
    install -Dm755 build/ashe "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 config/config.ashe "${pkgdir}/etc/${pkgname}/config.ashe"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}