summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 319b1ef0b415878f799b2e807fb66aaec17f861a (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
31
# Maintainer: Sick Codes <info at sick dot codes>
# Contributor: Abraham Stolk <https://github.com/stolk>
pkgname=imcat-git
_pkgname=${pkgname%-*}
pkgver=r22.218d975
pkgrel=1
pkgdesc="Preview any size image in a terminal window."
arch=('any')
url="https://github.com/stolk/imcat"
license=('CC0')
provides=(${pkgname})
depends=()
optdepends=()
makedepends=()
source=("git+https://github.com/stolk/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_pkgname}"
    make
}

package() {
  install -Dm755 "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}