summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4ae5facaf5312612850458e7eaa93d1907d4ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: kugland <kugland at gmail dot com>

pkgname=rename.pl
pkgver=2.0.0
pkgrel=1
pkgdesc='Rename files using perl expressions'
arch=('any')
url='https://github.com/kugland/rename.pl'
license=('mit')
depends=('gcc-libs' 'perl>=5.3.0' 'perl-try-tiny')
optdepends=('perl-text-unidecode: unidecode support')
source=("https://github.com/kugland/rename.pl/archive/v$pkgver.tar.gz")
sha256sums=('29d0da12b1715bf52c499fa8e042ad789c6c0640c5d1767e9b57828c42217aa3')

package() {
  DIR="rename.pl-$pkgver"
  tar -xzf "v$pkgver.tar.gz"
  gzip -9 ${DIR}/rename.pl.1
  install -Dm755 ${DIR}/rename.pl ${pkgdir}/usr/bin/rename.pl
  install -Dm644 ${DIR}/rename.pl.1.gz ${pkgdir}/usr/share/man/man1/rename.pl.1.gz
  install -Dm644 ${DIR}/README.md ${pkgdir}/usr/share/doc/rename-pl/README.md
  install -Dm644 ${DIR}/LICENSE ${pkgdir}/usr/share/doc/rename-pl/LICENSE
}