summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5689a9bf65e7f6f1d4b63108c78a59e9ea093228 (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
# Maintainer: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>

_pkgname=perl-scripts
pkgname=resize-images-git
pkgver=23.09.r133.g50403e9
pkgrel=1
pkgdesc="Command-line batch-processing tool for easily scaling down images."
arch=('any')
url="https://github.com/trizen/${_pkgname}"
license=('GPL-3.0-or-later')
makedepends=('git')

provides=("resize-images=${pkgver}")
conflicts=('resize-images')

depends=('perl>=5.36.0' 'perl-imager')
optdepends=()

source=("git+https://github.com/trizen/${_pkgname}.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$_pkgname"
    install -D -m 755 "Image/resize_images.pl" "$pkgdir/usr/bin/resize-images.pl"
}