system-helpers/dist/PKGBUILD

22 lines
588 B
Bash

pkgname=dotfiles-system-git
_pkgname="dotfiles-system"
pkgver=r81.da266c6
pkgrel=1
pkgdesc="Common system helper scripts"
arch=('any')
url="https://git.myservermanager.com/alexander.schaeferdiek/dotfiles-system"
makedepends=('git')
license=('GPL')
source=("${pkgname}::git+https://git.myservermanager.com/alexander.schaeferdiek/dotfiles-system.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname}"
cp -r etc/ "${pkgdir}/etc"
cp -r usr/ "${pkgdir}/usr"
}