~vilhalmer/cod

f3b47516495bf2dc0b8b2f79beaa2eaa9057516f — Bill Doyle 3 years ago 71470a0
Add PKGBUILD

Ironically, you can't install cod with cod
1 files changed, 21 insertions(+), 0 deletions(-)

A PKGBUILD
A PKGBUILD => PKGBUILD +21 -0
@@ 0,0 1,21 @@
# Maintainer: Bill Doyle <vil@vil.lv>
pkgname=cod
pkgver=1
pkgrel=1
license=('MIT')
pkgdesc='Compile on demand package manager'
arch=('any')
url='https://git.sr.ht/~vilhalmer/cod'
source=('codinstall' 'codstub')
sha256sums=('SKIP' 'SKIP')  # Oh noooooooo
provides=('cod')

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

package() {
    cd "$srcdir"
    install -Dt "$pkgdir/usr/bin/" -m755 codinstall codstub
}