# Maintainer: Eshan Roy <eshan@snigdhaos.org>
pkgname=snigdhaos-bootloader-systemd
org=Snigdha-OS
branch='master'
_destination1="/etc/pacman.d/hooks"
_licensedir="/usr/share/snigdhaos/licenses/"
pkgver=1
pkgrel=1
pkgdesc="Snigdha OS Config File"
arch=(
    'any'
)
url="https://snigdhaos.org/"
license=('MIT')
makedepends=()
depends=()
conflicts=(
    'snigdhaos-bootloader-systemd-dev'
)
backup=()
provides=(
    '${pkgname}'
    '${pkgname}-dev'
)
options=(
    !strip
    !emptydirs
)
source=("$pkgname.tar.gz")
sha256sums=(
    'SKIP'
)
install=$pkgname.install

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

package(){
    install -dm755 "$pkgdir/$_licensedir/$pkgname"
    install -m644 "$srcdir/$pkgname/LICENSE" "$pkdir/$_licensedir/$pkgname"

    install -dm755 "$pkgdir/$_destination1"
    cp -r ${srcdir}/${pkgname}/${_destination1}/* ${pkgdir}/${_destination1}
}