Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions switch/cairo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
switch-cairo
37 changes: 37 additions & 0 deletions switch/cairo/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: Dave Murphy <davem@devkitpro.org>
# Contributor: Nathan Rajlich <n@n8.io>

pkgname=switch-cairo
pkgver=1.16.0
pkgrel=1
pkgdesc='Cairo is a 2D graphics library with support for multiple output devices.'
arch=('any')
url='https://www.cairographics.org/'
license=(MPL)
options=(!strip libtool staticlibs)
#depends=("switch-pixman")
groups=('switch-portlibs')
makedepends=('switch-pkg-config' 'dkp-toolchain-vars')
source=("https://www.cairographics.org/releases/cairo-$pkgver.tar.xz")
sha256sums=(
'5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331'
)

build() {
cd cairo-$pkgver

source /opt/devkitpro/switchvars.sh

./configure --prefix="${PORTLIBS_PREFIX}" --host=aarch64-none-elf \
--disable-shared --enable-static

make -C src
}

package() {
cd cairo-$pkgver

source /opt/devkitpro/switchvars.sh

make DESTDIR="$pkgdir" -C src install
}