summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c357a9b5039e84f9698e3a6fe62fe9d536d93e69 (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
# Maintainer: Viachaslau Khalikin <viachaslavic'at'outlook'dot'com>

pkgname=xpm-pixbuf-git
pkgver=r1530.d290a0c
pkgrel=1
pkgdesc="Utilities for rendering XPM icons to a GdkPixbuf (devel branch)"
url="https://gitlab.gnome.org/ZanderBrown/xpm-pixbuf.git"
arch=('x86_64')
license=('LGPL-2.0-or-later')
depends=('glib2' 'glibc' 'gdk-pixbuf2')
makedepends=('git' 'meson')
provides=('xpm-pixbuf')
conflicts=('xpm-pixbuf')
source=("$pkgname::git+$url")
b2sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  arch-meson ${pkgname} build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
  install -Dm 644 $pkgname/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

# vim:set ft=sh ts=2 sw=2 et: