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

pkgname=axel
pkgver=2.17.10
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"
groups=()
depends=('openssl' 'gettext')
makedepends=('openssl-devel' 'gettext-devel')
options=()
source=("https://github.com/axel-download-accelerator/axel/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('c0d26eba6b94945cd98c5b69ca6df2744639d17bfd49047ef51a8a48f067de10')

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
}
