summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52618a41da240df567cc01f00b281b1a661ec90d (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: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='ucollage'
pkgname="${_pkgname}-git"
pkgver=0.1.0.r1.g684c52d
pkgrel=1
pkgdesc='Terminal image viewer based on Ɯberzug'
arch=('any')
url='https://github.com/ckardaris/ucollage'
license=('GPL3')
depends=('ueberzug')
makedepends=('git')
optdepends=('ffmpeg: display video thumbnails'
            'imagemagick: image rotation'
)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  install -Dm755 "${_pkgname}/${_pkgname}" -t "${pkgdir}/usr/bin"
  install -Dm644 "${_pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${_pkgname}"
}

# vim: ts=2 sw=2 et: