Skip to content

Instantly share code, notes, and snippets.

@weynhamz
Last active December 27, 2015 20:19
Show Gist options
  • Save weynhamz/7383448 to your computer and use it in GitHub Desktop.
Save weynhamz/7383448 to your computer and use it in GitHub Desktop.
PKGBUILD of perl-convert-uulib
# Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
# Contributor: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: David Zaragoza <[email protected]>
# Contributor: Piotr Beling <[email protected]>
# Contributor: Wael Nasreddine <[email protected]>
# Contributor: Guillermo A. Amaral <[email protected]> (thewonka)
# Contributor: Chih-mao Chen <[email protected]>
pkgname='perl-convert-uulib'
pkgver='1.4'
pkgrel='3.1'
pkgdesc='Perl interface to the uulib library (a.k.a. uudeview/uuenview).'
_dist=Convert-UUlib
arch=('any')
url='http://search.cpan.org/~mlehmann/Convert-UUlib/'
license=('GPL' 'PerlArtistic')
depends=('perl>=5.8.4')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Convert-UUlib-${pkgver}.tar.gz")
md5sums=('a6486df1d9ce319406fb9d5a610da759')
build() {
cd "${srcdir}"/"${_dist}"-"${pkgver}"
unset PERL5LIB PERL_MM_OPT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
perl Makefile.PL
make
}
check() {
cd "${srcdir}"/"${_dist}"-"${pkgver}"
unset PERL5LIB PERL_MM_OPT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "${srcdir}"/"${_dist}"-"${pkgver}"
unset PERL5LIB PERL_MM_OPT
make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
find "${pkgdir}" -name '.packlist' -o -name 'perllocal.pod' -delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment