summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b4e9ecb4741b68383ffc7ce8cf633712f49694c (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
37
# Maintainer: Daniel Mita <daniel@dango.space>
# Contributor:

pkgname=rakuenv-git
pkgver=1.1.1.r27.d08f6ad
pkgrel=1
pkgdesc='Raku Environment Manager'
arch=('any')
url='https://github.com/skaji/rakuenv'
license=('MIT')
depends=('bash')
makedepends=('git')
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
    cd "${pkgname%-git}"

    install -Dm 644 ./LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"

    # mkdir -p "$pkgdir/usr/lib/rakuenv/completions/"
    install -Dm 644 -t "$pkgdir/usr/lib/rakuenv/completions/" ./completions/*

    # mkdir -p "$pkgdir/usr/lib/rakuenv/libexec/"
    install -Dm 755 -t "$pkgdir/usr/lib/rakuenv/libexec/" ./libexec/*

    install -d "$pkgdir/usr/bin/"
    ln -s /usr/lib/rakuenv/libexec/rakuenv "$pkgdir/usr/bin/"
}