You are not logged in.
As my first foray into PKGBUILDing, I figured I'd try one for a simple perl module. This will be needed by backuppc, which I'll be attempting next.
see below
I'm unsure if the makedepends are necessary, and `namcap -i` said that the perl dependency was unneeded. I'd appreciate any feedback.
Last edited by sinecure (2007-10-10 12:09:53)
Offline
Namcap does not detect python (and obviously perl) module dependencies correctly in the current version.
There is a thread somewhere where this is mentioned (iirc it was 1 month ago).
It should not be necessary to use /usr/bin/perl , /usr/bin/make or /usr/bin/find as /usr/bin is in the default searchpath.
The makedepends look ok to me.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Checked through the threads. Thanks for the pointers, good to know.
Left out the full paths, etc. I'll probably try to get backuppc working, then submit all of them at the same time.
Thanks.
Offline
What a coincidence! I also want to run BackupPC! Here is a PKGBUILD for it.
Offline
Huh! I forgot to search the forum for backuppc. I'll have to remember that for projects in the future.
I'll put the latest PKGBUILD for File-RsyncP up here tomorrow, and test out your backuppc PKGBUILD either tomorrow or the next day.
Offline
It wasn't there when you posted
The PKGBUILD for BackupPC builds and installs OK. I haven't got the mod_perl web interface working yet.
Offline
WOW my awareness is tops.
Offline
Here's my final version of the PKGBUILD, now I'll read up on how to submit it.
# Contributor: "David J. Weller-Fahy" <dave-archlinux-packages@weller-fahy.com>
# Maintainer: "David J. Weller-Fahy" <dave-archlinux-packages@weller-fahy.com>
pkgname=perl-file-rsyncp
pkgver=0.68
pkgrel=2
pkgdesc="Perl/CPAN Module File::RsyncP : a simple rsync client"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~cbarratt/File-RsyncP"
source=("http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/File-RsyncP-$pkgver.tar.gz")
license=('GPL2')
provides=('file-rsyncp')
depends=('perl>=5.8.8-6' 'glibc')
makedepends=('make' 'gcc' 'findutils')
options=('docs' '!emptydirs')
build() {
cd $startdir/src/File-RsyncP-$pkgver || return 1
eval `perl -V:archname` || return 1
perl Makefile.PL \
INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} \
|| return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
find $startdir/pkg -name '.packlist' -exec rm '{}' \; || return 1
find $startdir/pkg -name '*.pod' -exec rm '{}' \; || return 1
}
md5sums=('ed47c5ef7ff835415692f18137cb0cf9')
Last edited by sinecure (2007-10-11 08:49:25)
Offline
Package is submitted.
Offline