summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7af27de3fdf39add98a52a8bf44f827cf0d5ca04 (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
# Maintainer: Moritz Schönherr <moritz.schoenherr@gmail.com>

pkgname='lel-git'
pkgver=r18.d5c9d0a
pkgrel=2
pkgdesc="Viewer for farbfeld images."
url="http://git.2f30.org/lel"
license=('custom:MIT/X Consortium')
source=("git://git.2f30.org/lel.git")
sha512sums=('SKIP')
arch=('any')
depends=('')
makedepends=('git')
conflicts=("lel")
provides=("lel")

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

}

build() {

  cd "${srcdir}/lel"
  make
}

package() {

  cd "${srcdir}/lel"
  make DESTDIR="${pkgdir}" PREFIX="/usr" MANPREFIX="/usr/share/man" install
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}

# vim:set et sw=2 sts=2 tw=80: