You are not logged in.

#1 2014-12-25 22:41:59

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 121

Packing perl script to become a executable

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

#2 2014-12-25 23:33:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Packing perl script to become a executable

Offline

Board footer

Powered by FluxBB