blob: 97ac1a617b25082be1f02dfca13d609a9380f30d (
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: Aman Verma <amanraoverma at gmail dot com>
pkgname=ap-rename
pkgver=1.601
pkgrel=1
pkgdesc="Perl-powered file rename script with many helpful built-ins"
arch=(any)
url="http://plasmasturm.org/code/rename"
license=(Artistic-1.0)
depends=(perl)
source=("https://github.com/ap/rename/archive/v$pkgver.tar.gz")
sha384sums=(a3cc071fd4be319b0fc526d682bc920a6b1b03656356feb5a49fef4bd1881a919d82661eb5b7277cd66c448399d57181)
build() {
cd "rename-$pkgver"
pod2man --utf8 rename rename.1
}
check() {
mkdir -p "rename-$pkgver/tests"
cd "rename-$pkgver/tests"
touch foo.doc bar.doc
../rename -s .doc .txt *.doc
stat foo.txt bar.txt >/dev/null
}
package() {
cd "rename-$pkgver"
# Change name to "prename" to not conflict with util-linux.
install -D -m644 rename.1 "$pkgdir/usr/share/man/man1/prename.1"
install -D rename "$pkgdir/usr/bin/vendor_perl/prename"
}
# vim: shiftwidth=2 softtabstop=2 expandtab
|