summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Tolar2013-06-20 23:43:41 -0500
committerJeffrey Tolar2013-06-20 23:43:41 -0500
commitaf75173ed40cd8e26e3bf15eeb3e6d6ab164b967 (patch)
tree258be7cb4aa3e33b367791685577e0b035fd1d36
parentf51f84687573f96ae9b9d46e5042dc9ce3b9534b (diff)
downloadaur-af75173ed40cd8e26e3bf15eeb3e6d6ab164b967.tar.gz
Update PKGBUILD for pacman 4.1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD33
2 files changed, 13 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 69c895ac248..8e9a01c3dcf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -17,6 +17,8 @@ pkgbase = cope-git
depends = perl-list-moreutils
depends = perl-params-util
depends = perl-regexp-common
+ source = cope::git://github.com/lotrfan/cope.git
+ md5sums = SKIP
pkgname = cope-git
diff --git a/PKGBUILD b/PKGBUILD
index 0cda6c71478..d76a3674ac0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Will Chappell <wtchappell@gmail.com>
# Contributor: denton <e9203.00 gmail com>
pkgname=cope-git
-_realname=cope
+_pkgname=cope
pkgver=20110901
pkgrel=1
pkgdesc='A colourful wrapper for terminal programs'
@@ -11,35 +11,23 @@ license=('GPL' 'PerlArtistic')
depends=("perl>=5.1" 'perl-class-inspector' 'perl-env-path' 'perl-file-sharedir'
'perl-io-stty' 'perl-io-tty' 'perl-list-moreutils' 'perl-params-util'
'perl-regexp-common')
-makedepends=(git)
+makedepends=('git')
install=$pkgname.install
-_gitroot=https://github.com/trapd00r/${_realname}.git
-_gitname=$_realname
+source=("$_pkgname::git://github.com/lotrfan/${_pkgname}.git")
+md5sums=('SKIP')
build() {
- cd $srcdir
-
- # Git
- msg 'Connecting to GIT server....'
-
- if [ -d $_gitname ] ; then
- cd $_gitname && git pull origin
- msg 'The local files are updated.'
- else
- git clone $_gitroot
- fi
-
- msg 'GIT checkout done or server timeout'
- msg 'Starting make...'
-
- rm -rf $srcdir/$_gitname-build
- git clone $srcdir/$_gitname $srcdir/$_gitname-build
- cd $srcdir/$_gitname-build
+ cd "${srcdir}/${_pkgname}"
# Make
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
make install DESTDIR=$pkgdir || return 1
# Install the 'cope_path' command for use in bash startup scripts.
@@ -50,3 +38,4 @@ build() {
find $pkgdir -name perllocal.pod -delete
find $pkgdir -name .packlist -delete
}
+