# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=windows-default-manifest
pkgver=6.4
pkgrel=2
pkgdesc='Default Windows application manifest'
url='https://cygwin.com/'
msys2_repository_url='https://sourceware.org/git/cygwin-apps/windows-default-manifest.git'
arch=('i686' 'x86_64')
license=('BSD')
makedepends=('git' 'gcc' 'autotools')
_GIT_TAG="release-${pkgver//\./_}"
source=("git://sourceware.org/git/cygwin-apps/${pkgname}.git#tag=${_GIT_TAG}")
sha256sums=('SKIP')

prepare() {
  cd "${pkgname}"

  autoreconf -fiv
}

build() {
  cd ${srcdir}/${pkgname}
  ./configure \
    --prefix=/usr \
    --build=${CHOST}
  make
}

package() {
  cd ${srcdir}/${pkgname}
  make DESTDIR=${pkgdir} install
}
