# Contributer: Reza Tavakoli <rta.0070@gmail.com>

pkgname="stow"
pkgver=2.4.1
pkgrel=1
pkgdesc="GNU Stow is a symlink farm manager which takes distinct packages of software and/or data located in separate directories on the filesystem, and makes them appear to be installed in the same place"
arch=("any")
license=("GPL")
url="https://ftp.gnu.org/gnu/stow/"
msys2_references=(
  "anitya: 4900"
)
depends=("perl")
makedepends=('autotools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('2a671e75fc207303bfe86a9a7223169c7669df0a8108ebdf1a7fe8cd2b88780b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure

  make
  make DESTDIR=${srcdir}/dest install
}

package() {
  cd "${srcdir}/dest"
  cp -rf * ${pkgdir}
}
