# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=alien
pkgver=8.95.8
pkgrel=0
pkgdesc="Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats"
url="http://joeyh.name/code/alien"
arch="noarch"
license="GPL-2.0-only"
depends="perl"
subpackages="$pkgname-doc"
source="https://deb.debian.org/debian/pool/main/a/alien/alien_$pkgver.tar.xz"
options="!check" # Has no tests
builddir="$srcdir/$pkgname"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
		INSTALLDIRS=vendor \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
32b459ffe125de16a5a72d9eed80c34076d22e6b9a5a710660e8f96caef6ab78ac034dc753c83f539a95b8e3553bcdf81b5839ee0a03493894426957fecd8c85  alien_8.95.8.tar.xz
"
