diff --git a/switch/pixman/.gitignore b/switch/pixman/.gitignore new file mode 100644 index 00000000..676110ed --- /dev/null +++ b/switch/pixman/.gitignore @@ -0,0 +1 @@ +switch-pixman diff --git a/switch/pixman/PKGBUILD b/switch/pixman/PKGBUILD new file mode 100644 index 00000000..8ad802c3 --- /dev/null +++ b/switch/pixman/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Dave Murphy +# Contributor: TooTallNate + +pkgname=switch-pixman +pkgver=0.42.2 +pkgrel=1 +pkgdesc='Pixman is a low-level software library for pixel manipulation, providing features such as image compositing and trapezoid rasterization.' +arch=('any') +url='http://www.pixman.org/' +license=(MIT) +options=(!strip libtool staticlibs) +depends=() +groups=('switch-portlibs') +makedepends=('switch-pkg-config' 'dkp-toolchain-vars') +source=("https://www.cairographics.org/releases/pixman-$pkgver.tar.gz") +sha256sums=( + 'ea1480efada2fd948bc75366f7c349e1c96d3297d09a3fe62626e38e234a625e' +) + +build() { + cd pixman-$pkgver + + source /opt/devkitpro/switchvars.sh + + ./configure --prefix="${PORTLIBS_PREFIX}" --host=aarch64-none-elf \ + --disable-shared --enable-static + + make +} + +package() { + cd pixman-$pkgver + + source /opt/devkitpro/switchvars.sh + + make DESTDIR="$pkgdir" install +}