summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Kugland2021-01-19 17:07:40 -0300
committerAndré Kugland2021-01-19 17:07:40 -0300
commita35d25b6910fabbb818418fffc826f0a2b5942e8 (patch)
treef694291ba1d0e4029b67d721e2d80ad3a330a99e
downloadaur-a35d25b6910fabbb818418fffc826f0a2b5942e8.tar.gz
first commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD23
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..929a3c50b65
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = rename.pl
+ pkgdesc = Rename files using perl expressions
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/kugland/rename.pl
+ arch = any
+ license = mit
+ depends = gcc-libs
+ depends = perl>=5.3.0
+ depends = perl-try-tiny
+ optdepends = perl-text-unidecode: unidecode support
+ source = https://github.com/kugland/rename.pl/archive/v2.0.0.tar.gz
+ sha256sums = 29d0da12b1715bf52c499fa8e042ad789c6c0640c5d1767e9b57828c42217aa3
+
+pkgname = rename.pl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b4ae5facaf5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}