summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8706274a3253d1a57af91e503002ffe77d3b167 (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
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>

_pkgname=curtail
pkgname=$_pkgname-git
pkgdesc="Simple & lossless image compressor"
pkgver=1.7.0+11+gab0e268
pkgrel=1
arch=('any')
url="https://github.com/Huluti/Curtail"
license=('GPL3')
depends=('jpegoptim' 'libadwaita' 'libwebp' 'optipng' 'pngquant' 'python-gobject')
makedepends=('meson')
checkdepends=('appstream-glib')
conflicts=($_pkgname imcompressor)
provides=($_pkgname)
source=("git+$url.git")
sha256sums=('SKIP')

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

build() {
  arch-meson Curtail build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}