summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2411be6e8212c214e935a56c3f0beb52579b067a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Angel Perez <near1297@nauta.cu>
# Maintainer: Miguel Revilla <yo@miguelrevilla.com>
# Maintainer: curlywei dewei0724@gmail.com

pkgname=alien_package_converter
pkgver=8.95.9
pkgrel=3
deb_pkgrel=1
pkgdesc="Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats"
arch=('any')
url="http://joeyh.name/code/alien/"
license=('GPL2')
depends=('perl' 'debhelper' 'cpio' 'rpm-org' 'bzip2')
makedepends=('perl' 'git')
options=('!emptydirs')
source=("git+https://salsa.debian.org/debian/alien.git#tag=debian/${pkgver}-${deb_pkgrel}")
sha256sums=('SKIP')

build() {
cd "${srcdir}/alien"
  # Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 \
PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
MODULEBUILDRC=/dev/null

perl Makefile.PL
make
}

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