# Maintainer: LoveSy <shana@zju.edu.cn>

pkgname=icmake
pkgver=9.03.01
pkgrel=2
pkgdesc='A program maintenance (make) utility using a C-like grammar'
arch=('i686' 'x86_64')
url='https://fbb-git.gitlab.io/icmake/'
license=('GPL3')
makedepends=('gcc' 'git')
source=("${pkgname}::git+https://gitlab.com/fbb-git/icmake.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}/${pkgname}"

  ./icm_prepare /
  ./icm_bootstrap /
}

package() {
  cd "${srcdir}/${pkgname}/${pkgname}"

  ./icm_install all "${pkgdir}"
}
