summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f9b8a5e2fa21e06636388c853040bdc29943945 (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
37
38
# Maintainer: tfuxu <tfuxu@tutanota.com>
pkgname=halftone
pkgver=0.6.0
pkgrel=1
pkgdesc="Give your images that pixel art-like style"
arch=('any')
url="https://github.com/tfuxu/Halftone"
license=('GPL3')
depends=(
    'gtk4'
    'libadwaita'
    'imagemagick'
    'python'
    'python-gobject'
    'python-wand')
optdepends=(
    'webp-pixbuf-loader: support more image formats')
checkdepends=('appstream-glib')
makedepends=('git' 'meson' 'ninja' 'blueprint-compiler')
#source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
_commit=2afd8474017d0c750378ab87413c7bd20141917d # tags/0.6.0
source=("git+$url.git#commit=$_commit")
sha256sums=('SKIP')

prepare() {
  cd Halftone
}

build() {
  arch-meson Halftone build
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm644 Halftone/README.md -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm644 Halftone/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}