summaryrefslogtreecommitdiff
path: root/pcr/alien/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-04-05 15:05:14 -0300
committerDavid P <megver83@openmailbox.org>2017-04-05 15:05:14 -0300
commit78effaf3fbf86f1030649501126cf1db65cfe053 (patch)
tree462b1c65ef41e3b4ce0ba3b41f1d576a0ae291c0 /pcr/alien/PKGBUILD
parent9b50627c37ae8f19c0db713b609e8bed10d1a225 (diff)
downloadabslibre-78effaf3fbf86f1030649501126cf1db65cfe053.tar.gz
abslibre-78effaf3fbf86f1030649501126cf1db65cfe053.tar.bz2
abslibre-78effaf3fbf86f1030649501126cf1db65cfe053.zip
Added alien to [pcr]
Diffstat (limited to 'pcr/alien/PKGBUILD')
-rw-r--r--pcr/alien/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/alien/PKGBUILD b/pcr/alien/PKGBUILD
new file mode 100644
index 000000000..e2af9612e
--- /dev/null
+++ b/pcr/alien/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: David P. <megver83@openmailbox.org>
+# Contributor: Miguel Revilla <yo@miguelrevilla.com>
+
+pkgname=alien
+pkgver=8.95
+pkgrel=2
+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')
+conflicts=('alien_package_converter')
+makedepends=('perl')
+options=('!emptydirs')
+source=("http://ftp.de.debian.org/debian/pool/main/a/alien/alien_$pkgver.tar.xz")
+sha256sums=('37a22587c33810feab323474bdadbf969fda2eb4e720b2ca01b40d82d6f71a17')
+
+build() {
+ cd "${srcdir}/alien-${pkgver}"
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=site DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs site --destdir '${pkgdir}'" \
+ PERL5LIB="" PERL_LOCAL_LIB_ROOT="" \
+ MODULEBUILDRC=/dev/null
+
+ perl Makefile.PL
+
+ make DESTDIR="${pkgdir}" PREFIX="${pkgdir}/usr" VARPREFIX="${pkgdir}"
+}
+
+package() {
+ cd "${srcdir}/alien-${pkgver}"
+ make DESTDIR="${pkgdir}" PREFIX="${pkgdir}/usr" VARPREFIX="${pkgdir}" INSTALLSITELIB=/usr/lib/perl5/site_perl INSTALLVENDORLIB=/usr/lib/perl5/vendor_perl install
+ mv "${pkgdir}"/usr/bin/site_perl/alien "${pkgdir}"/usr/bin
+}