summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be8017a03d0e39722086aa2ed22c42351a97dac4 (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
# Maintainer: Christopher <archlinux-maintainer@christopherz.com>

pkgname="dec"
pkgver=r29.0f26721
pkgrel=1
pkgdesc="A declarative package manager for Arch Linux"
arch=("any")
url="https://gitlab.com/rehposuite/dec"
license=("GPL")
depends=("bash" "paru")
makedepends=("git")
provides=("$pkgname")
source=("git+${url}.git")
sha256sums=("SKIP")

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

package() {
  cd "$pkgname"

  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm755 "dec" "${pkgdir}/usr/bin/dec"
}