You are not logged in.
Hi, I'm trying to package my script, which is going to become an executable. My problem is that when I run makepkg, the executable is placed in /usr/bin/site_perl instead in pure /usr/bin, any ideas?
this is my Makefile.PL
use ExtUtils::MakeMaker;
WriteMakefile (
NAME => 'joelperl',
VERSION_FROM => 'joel-perl',
PREREQ_PM => {
'Switch' => 0
},
EXE_FILES => ['joel-perl']
);
the manifest:
joel-perl
Makefile.PL
and pkgbuild:
# Maintainer: Joel Almeida <aullidolunar _at_ gmail dot c0m>
pkgname='joel-perl'
_distname='joelperl'
pkgver='1.0.1'
pkgrel='1'
pkgdesc="Testing perl"
arch=('any')
license=('GPL')
depends=('perl')
makedepends=('perl-switch')
url='http://someurl.com'
source=("${_distname}-v${pkgver}.tar.gz")
md5sums=('b19924f24dbc9bf4605119e852e5684e')
build() {
cd "${_distname}-v${pkgver}"
perl Makefile.PL INSTALLSITEBIN="" PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make
}
package() {
cd "${_distname}-v${pkgver}"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.
Offline
Offline