# Maintainer: Yong-hyu, Ban <yhban@quendi.moe>
# Maintainer: Eon Jeong <administrator@korea.ac.kr>

pkgname=axel
pkgver=2.17.14
pkgrel=1
pkgdesc="Light command line download accelerator for Linux and Unix"
arch=('i686' 'x86_64')
license=('GPL')
url="https://github.com/axel-download-accelerator/axel"
msys2_references=(
  "cpe: cpe:/a:axel:axel"
  "cpe: cpe:/a:axel_project:axel"
)
groups=()
depends=('openssl' 'gettext')
makedepends=('openssl-devel' 'gettext-devel' 'autotools' 'gcc')
options=()
source=("https://github.com/axel-download-accelerator/axel/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('73f3aeafcb00b8101b212fcf47969a4962e7a1b50843306178b527a9942d8785')

prepare() {
  cat /dev/null
}

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

  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --mandir=/usr/share/man \
    --disable-nls

  make
}

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

  make DESTDIR="${pkgdir}" install
}
