Last active
October 19, 2017 08:57
-
-
Save xvybihal/e7304e765f111b80db6c5b71536bfe75 to your computer and use it in GitHub Desktop.
cope-git PKGBUILD from nichivo sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jeffrey Tolar <tolar.jeffrey at gmail dot com> | |
# Contributor: Will Chappell <wtchappell@gmail.com> | |
# Contributor: denton <e9203.00 gmail com> | |
pkgname=cope-git | |
_gitname=cope | |
_appname=App-Cope | |
pkgver=1.00 | |
pkgrel=1 | |
pkgdesc='A colourful wrapper for terminal programs' | |
url=http://stuff.cytzol.org/cope/ | |
arch=(any) | |
license=('GPL' 'PerlArtistic') | |
depends=("perl>=5.10" 'perl-class-inspector' 'perl-env-path' 'perl-file-sharedir' | |
'perl-io-stty' 'perl-io-tty' 'perl-list-moreutils' 'perl-params-util' | |
'perl-regexp-common' 'perl-regexp-ipv6' 'perl-number-format') | |
makedepends=('git') | |
conflicts=($_gitname) | |
provides=($_gitname) | |
install="${pkgname}.install" | |
source=("https://github.com/nichivo/cope/releases/download/v${pkgver}/${_appname}-${pkgver}.tar.gz") | |
sha256sums=('2c26109f01dd76e58523e0e9c96665df955119033fefe8e34f13a79a6a6d1eb2') | |
build() { | |
cd "${srcdir}/${_appname}-${pkgver}" | |
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT | |
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps | |
# Make | |
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor | |
make | |
} | |
check() { | |
cd "${srcdir}/${_appname}-${pkgver}" | |
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT | |
export PERL_MM_USE_DEFAULT=1 | |
make test | |
} | |
package() { | |
cd "${srcdir}/${_appname}-${pkgver}" | |
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT | |
make install INSTALLDIRS=vendor DESTDIR=$pkgdir | |
# Install the 'cope_path' command for use in bash startup scripts. | |
mkdir -p $pkgdir/usr/bin | |
install -C bin/cope_path.pl $pkgdir/usr/bin/cope_path | |
# Clean | |
find $pkgdir -name perllocal.pod -delete | |
find $pkgdir -name .packlist -delete | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment