You are not logged in.
HI,
I want to make a PKGBUILD for gpgdir.
In the sources there is only a perl install-script and I don't know how to handle this script in my PKGBUILD.
So I need some help.
This is the "basic" PKGBUILD.
pkgname=gpgdir
pkgver=1.5
pkgrel=1
pkgdesc="a perl script that uses the CPAN GnuPG::Interface module to encrypt and decrypt directories"
arch=('i686')
url="http://www.cipherdyne.org/gpgdir"
license=('GPL')
depends=()
makedepends=()
source=(http://www.cipherdyne.org/gpgdir/download/gpgdir-1.5.tar.gz)
md5sums=('d9cac88d400efb56a3b9e9eda06ceab8')
build() {
cd $startdir/src
}
p.s.
I don't have any perl skills....
Last edited by SiD (2007-10-25 18:52:05)
Offline
ok,
The install-script has a config section for the pathes.
#======================= config =======================
my $install_dir = '/usr/bin';
my $libdir = '/usr/lib/gpgdir';
my $manpage = 'gpgdir.1';
### only used it $ENV{'HOME'} is not set for some reason
my $config_homedir = '';
### system binaries
my $gzipCmd = '/usr/bin/gzip';
my $perlCmd = '/usr/bin/perl';
my $makeCmd = '/usr/bin/make';
#===================== end config =====================
I changed the $install_dir and $libdir to to pkg/usr/bin and pkg/lib/gpgdir with this build function in the PKGBUILD:
build() {
cd $startdir/src/$pkgname-$pkgver
perl install.pl
}
but this gives me a error
==> Starting build()...
[*] Could not create pkg/usr/lib/gpgdir: No such file or directory at install.pl line 396.
==> ERROR: Build Failed. Aborting...
this is the code around line 396 of the install-script
sub setup() {
unless (-d $libdir) {
mkdir $libdir, 0755 or die "[*] Could not create $libdir: $!"
}
return;
}
How can I modify the script that it Installs with $startdir/pkg/ as root-directory?
Last edited by SiD (2007-10-26 11:19:16)
Offline