summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29cb90537842eb30e637401cb7289687242f7085 (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: Charalampos Kardaris <ckardaris at outlook dot com>

pkgname=ucollage
pkgver=1.0.2
pkgrel=0
pkgdesc="An extensible command line image viewer inspired by vim"
arch=('any')
url="https://github.com/ckardaris/ucollage"
license=('GPL3')
depends=('bash>=4.2.0' 'ueberzug' 'file' 'bc' 'coreutils' 'sed' 'grep')
optdepends=(
  'imagemagick: Image rotation'
  'ffmpeg: Thumbnail creation'
  'xclip: Clipboard pasting'
)
source=("https://github.com/ckardaris/ucollage/releases/download/v${pkgver}/ucollage-${pkgver}.tar.gz")
sha256sums=('8f911b6632e2beae58bc205b4f9edab4cc1ce6f5132ee116ba7b0bc25a8ce59d')

package() {
    cd "${pkgname}-${pkgver}"
    sed -i "s|{{UCOLLAGE_PREFIX_DIR}}||" ucollage
    install -Dm755 ucollage ${pkgdir}/usr/bin/ucollage
    install -Dm644 README.md -t ${pkgdir}/usr/share/doc/ucollage
    install -Dm644 LICENSE -t ${pkgdir}/usr/share/licenses/ucollage
    install -Dm644 man/ucollage.1 -t ${pkgdir}/usr/share/man/man1
    install -Dm644 etc/* -t ${pkgdir}/etc/ucollage
    install -Dm644 src/* -t ${pkgdir}/usr/share/ucollage/src
}