summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14c8acdd3f4ee17362446d1d1dd31e1602ab6356 (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
# Maintainer: unknowndev (unknowndevQwQ at pm dot me)

_pkgname='youki'
pkgname="${_pkgname}-git"
pkgver=r999.53bbdc2
pkgrel=1
pkgdesc="A container runtime written in rust"
arch=('x86_64')
url='https://github.com/containers/youki'
license=('MIT')
sha512sums=('SKIP')
source=("git+${url}")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('git' 'dbus-glib' 'pkg-config' 'systemd')

pkgver() {
  cd "${_pkgname}"
  (
    set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgname}"
  ./build.sh
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -Dm0755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm0644 "LICENSE"     "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}