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

pkgname=curtail-git
pkgver=1.10.0.r2.ge6900c9
pkgrel=1
pkgdesc='Simple & useful image compressor (latest commit)'
url="https://github.com/Huluti/Curtail"
license=('GPL-3.0-or-later')
arch=('x86_64' 'aarch64')
depends=('jpegoptim' 'libadwaita' 'libwebp' 'oxipng' 'pngquant' 'python-gobject' 'scour')
makedepends=('git' 'meson')
checkdepends=('appstream-glib')
provides=("curtail")
conflicts=("curtail")
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd Curtail
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

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