summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcd46f8e5adeda5a3b5cee48451ce78e1f9654c8 (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
# Maintainer: willemw <willemw12@gmail.com>
# Constributor: Caltlgin Stsodaat <contact@fossdaily.xyz>

pkgname=ucollage-git
pkgver=1.0.0.r0.g0393657
pkgrel=1
pkgdesc="Extensible command line image viewer inspired by vim"
arch=('any')
url="https://github.com/ckardaris/ucollage"
license=('GPL3')
depends=('bc' 'ueberzug')
makedepends=('git')
optdepends=('ffmpeg: video thumbnails' 'imagemagick: image rotation' 'xclip: clipboard pasting')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

package() {
  make -C $pkgname PREFIX="$pkgdir/" install
  sed -i "s|$pkgdir||g" "$pkgdir/usr/bin/ucollage"
}