# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>

_gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname")
pkgver=3.3.0.2
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
arch=('i686' 'x86_64')
url="https://github.com/Melawy/$_gitname"
license=('AGPL')

depends=()

makedepends=('git')

optdepends=()

backup=()
provides=("${pkgname}")
conflicts=("${pkgname}")
options=(!strip !emptydirs)
source=("file:///disk/github/active/Melawy/Melawy-Dev/CORE/calamares-config_local/configs.tar.xz")
sha256sums=("SKIP")
validpgpkeys=('95F48000540A4DB146583A47C49B5E77FD80302D')

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

# pkgver() {
#         cd "${srcdir}/$_gitname"
#         printf "3.3.0.%s" "$(git rev-list --count HEAD)"
# }

package() {
  install -dm 755 "${pkgdir}/etc/calamares"
  cp -rp "${srcdir}/configs" "${pkgdir}/etc/calamares/"
}
