summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51c001dbc8db4ddb4d027b9868f349698c346e8a (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
32
33
34
35
36
37
38
# Maintainer: Alberto Fanjul <albertofanjul@gmail.com>
pkgname=icat-git
pkgver=v0.5.r1.02c76a3
pkgrel=1
pkgdesc="icat (Image cat) outputs images in 256-color capable terminals."
arch=(x86_64)
url="https://github.com/atextor/icat"
license=('GPL')
groups=()
depends=()
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/atextor/icat')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

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

build() {
  cd "$srcdir/${pkgname%-git}"
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 icat "$pkgdir/usr/bin/icat"
}