summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 328cbefa38df968fc130b897123cfa2d7a7b7a12 (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.9.1.r11.g424cea7
pkgrel=1
pkgdesc='Simple & useful image compressor (latest commit)'
url="https://github.com/Huluti/Curtail"
arch=('x86_64' 'aarch64')
license=('GPL3')
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"
}