summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fde34864940e470096d986eb1b2b7183570f58db (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: Tom Bu <tombu@tombu.info>

pkgname=ciel-arch-plugins-git
_pkgname=ciel-arch-plugins
pkgver=r10.ed5d2ff
pkgrel=1
pkgdesc="Arch Linux integration plugins for the Ciel container manager."
arch=('x86_64')
url="https://gitlab.com/arch-linux-mipsr6/${_pkgname}"
license=('NCSA')
depends=('bash' 'ciel' 'util-linux')
provides=("${_pkgname}")
makedepends=('git')
source=("$pkgname::git+${url}.git")
md5sums=('SKIP')

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

package() {
    cd "$pkgname"
    # Install the plugins
    for i in configure makepkg provision sync-image
    do
      install -Dm755 ciel-arch-${i} ${pkgdir}/usr/libexec/ciel-plugin/ciel-arch-${i}
    done

    # Install the license
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/"${_pkgname}"/LICENSE
}