summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-10-21 23:30:00 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-10-21 23:49:41 -0400
commitf6465c57b0f0d89a9be359565a86da96d863c0e0 (patch)
tree9e7a2985cd7269e91f462bde3351ef74dfdae48c
parentbd200038365292d28a167fedb34302205b42915a (diff)
downloadabslibre-f6465c57b0f0d89a9be359565a86da96d863c0e0.tar.gz
abslibre-f6465c57b0f0d89a9be359565a86da96d863c0e0.tar.bz2
abslibre-f6465c57b0f0d89a9be359565a86da96d863c0e0.zip
[perl-file-rename]: requisite of libre/icecat/PKGBUILD.makeicecat
-rw-r--r--~bill-auger/perl-file-rename/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/~bill-auger/perl-file-rename/PKGBUILD b/~bill-auger/perl-file-rename/PKGBUILD
new file mode 100644
index 000000000..8ed3504bf
--- /dev/null
+++ b/~bill-auger/perl-file-rename/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Florian Pritz <flo@xinu.at>
+
+pkgname=perl-file-rename
+pkgver=1.13
+pkgrel=1
+pkgdesc="Renames multiple files using Perl regular expressions."
+arch=(any)
+url="https://metacpan.org/release/File-Rename"
+license=(PerlArtistic)
+depends=(perl)
+options=(!emptydirs)
+source=(https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/File-Rename-$pkgver.tar.gz)
+sha256sums=('0b308d6ac5b8ae0dad6135c7b68620582221b2b3144a5b390ddd2ea64312e64d')
+
+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"
+}