blob: 6f382c47bdd43b9a3b6ed57aff4573a1ec2321b8 (
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
33
|
# Maintainer: Azriel Leers <azriel@leers.com.au>
# Original Submitter: Glennie Vignarajah <glennie@glennie.fr>
pkgname=file-rename
pkgver=2.02
pkgrel=1
pkgdesc="Renames multiple files using regular expressions."
arch=(any)
url="https://metacpan.org/release/File-Rename"
license=('PERL 5')
depends=(perl)
options=(!emptydirs)
source=(http://cpan.metacpan.org/authors/id/R/RM/RMBARKER/File-Rename-$pkgver.tar.gz)
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/
mv ${pkgdir}/usr/bin/vendor_perl/rename ${pkgdir}/usr/bin/vendor_perl/file-rename
mv ${pkgdir}/usr/share/man/man1/rename.1p ${pkgdir}/usr/share/man/man1/file-rename.1p
ln -s vendor_perl/file-rename "$pkgdir/usr/bin/file-rename"
ln -s /usr/share/man/man1/file-rename.1p.gz "$pkgdir/usr/share/man/man1/file-rename.1p.gz"
}
sha256sums=('537b608008b68136dae0b8bd1afe5eab75264bb64bb17839ee65bdb474c520df')
|