blob: b9fb9b513e8d50e1158c484f8fa19161e0bb8df9 (
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
|
# Maintainer: Fabrix Xm <fabrix.xm@gmail.com>
_pkgname=pixbufloader-qoi
pkgname=$_pkgname-git
pkgver=0.2.0.r12.c1ecb4f
pkgrel=1
pkgdesc='GdkPixbuf loader for the Quite Ok Image format'
arch=('x86_64' 'aarch64')
url='https://git.sr.ht/~fabrixxm/pixbufloader-qoi'
license=('MIT')
depends=('gdk-pixbuf2' 'shared-mime-info>=2.3')
makedepends=('git' 'meson' 'qoi-headers-git')
provides=('pixbufloader-qoi')
source=("git+https://git.sr.ht/~fabrixxm/pixbufloader-qoi")
sha256sums=(SKIP)
pkgver() {
cd "${srcdir}/$_pkgname"
meson_version=$(cat meson.build | grep "version" | head -n1 | sed "s/[^0-9.]//g")
printf "%s.r%s.%s" "$meson_version" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
arch-meson build "$_pkgname"
ninja -C build
}
check() {
cd "${srcdir}/build"
ninja test
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
}
|