summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 418881904d4a2410942859daee15d63584f892ed (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
pkgname=curtail-git
pkgver=1.2.1+1+g826f28c
pkgrel=1
pkgdesc="Simple & lossless image compressor."
arch=('any')
url="https://github.com/Huluti/Curtail"
license=('GPL3')
depends=('gtk3' 'jpegoptim' 'libwebp' 'optipng' 'pngquant' 'python-gobject')
makedepends=('meson')
checkdepends=('appstream-glib')
provides=('curtail')
conflicts=('curtail' 'imcompressor')
source=("git+https://github.com/Huluti/Curtail.git")
b2sums=('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
}