summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD45
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..17831c79dc1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = libavif-git
+ pkgdesc = Library for encoding and decoding .avif files
+ pkgver = 0.8.1.r28.g3fd2db2
+ pkgrel = 1
+ url = https://github.com/AOMediaCodec/libavif
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ makedepends = nasm
+ makedepends = pkgconf
+ makedepends = gdk-pixbuf2
+ depends = glibc
+ depends = dav1d
+ depends = libjpeg
+ depends = rav1e
+ provides = libavif
+ conflicts = libavif
+ source = git+https://github.com/AOMediaCodec/libavif.git
+ sha256sums = SKIP
+
+pkgname = libavif-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7ad1b5e123d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libavif-git
+pkgver=0.8.1.r28.g3fd2db2
+pkgrel=1
+pkgdesc="Library for encoding and decoding .avif files"
+arch=('i686' 'x86_64')
+url="https://github.com/AOMediaCodec/libavif"
+license=('BSD')
+depends=('glibc' 'dav1d' 'libjpeg' 'rav1e')
+makedepends=('git' 'cmake' 'nasm' 'pkgconf' 'gdk-pixbuf2')
+provides=('libavif')
+conflicts=('libavif')
+source=("git+https://github.com/AOMediaCodec/libavif.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libavif"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libavif"
+
+ mkdir -p "_build" && cd "_build"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DAVIF_BUILD_APPS=ON \
+ -DAVIF_CODEC_DAV1D=ON \
+ -DAVIF_CODEC_RAV1E=ON \
+ -DAVIF_BUILD_GDK_PIXBUF=ON \
+ ../
+ make
+}
+
+package() {
+ cd "libavif"
+
+ make -C "_build" DESTDIR="$pkgdir" install
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libavif"
+}