summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d366d918c8ac2d0b0f1d44dd399c61611e89b09a (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
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=lepton-git
pkgver=1.2.1+162+gea9bc15
pkgrel=1
pkgdesc='Tool and file format for losslessly compressing JPEGs'
arch=(x86_64)
url='https://github.com/dropbox/lepton'
license=(APACHE)
makedepends=(cmake git ninja)
source=(git+$url)
md5sums=('SKIP')

pkgver() {
  cd lepton
  git describe | sed 's/-/+/g'
}

prepare() {
  mkdir -p build
}

build() {
  cd build

  cmake -GNinja -DCMAKE_BUILD_TYPE=release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    ../lepton

  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}