blob: ca43384f368b9492704c58cce753cbe7e7b6663a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Florian Pritz <flo@xinu.at>
# Grabbed from Parabola by figue <https://aur.archlinux.org/account/figue> :: https://www.parabola.nu/packages/pcr/x86_64/perl-file-rename/
pkgname=perl-file-rename
pkgver=2.01
pkgrel=1
pkgdesc="Renames multiple files using Perl regular expressions."
arch=(any)
url="https://metacpan.org/release/File-Rename"
license=(PerlArtistic)
depends=(perl)
provides=('perl-rename')
conflicts=('perl-rename')
options=(!emptydirs)
source=(https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/File-Rename-$pkgver.tar.gz)
sha256sums=('6f4c95e554a39023081cb1ff1c9bcbfe9fa138b973fec58c14d3abb9fe4fd7b7')
build() {
cd "$srcdir/File-Rename-$pkgver"
perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
make
}
package() {
cd "$srcdir/File-Rename-$pkgver"
make DESTDIR="$pkgdir/" install
install -d "$pkgdir/usr/bin/"
ln -s vendor_perl/rename "$pkgdir/usr/bin/perl-rename"
ln -s /usr/share/man/man1/rename.1p.gz "$pkgdir/usr/share/man/man1/perl-rename.1p.gz"
}
|