summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e0e15148cd527ad51398dba9304b801dc7f56d7 (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
# Maintainer: JoaquĆ­n Pino <jpinoz at tuta dot io>
_name="webp-pixbuf-loader"
pkgname="${_name}-git"
pkgdesc="WebM GDK Pixbuf Loader library - Git version"
pkgver=0.0.4.r2.g631c1ec
pkgrel=1
url="https://github.com/aruiz/webp-pixbuf-loader"
license=("GPL")
depends=("gdk-pixbuf2" "libwebp")
makedepends=("meson" "git")
arch=("i686" "x86_64" "i486" "pentium4" "aarch64" "armv7h")
conflicts=("${_name}")
source=("${_name}::git+${url}.git")
sha256sums=("SKIP")

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

build() {
	cd "${_name}"
	arch-meson build
	ninja -C build
}

package() {
	cd "$srcdir/${_name}"
	DESTDIR="${pkgdir}" ninja -C build install
}