diff --git a/pkgs/cairo/build.sh b/pkgs/cairo/build.sh new file mode 100644 index 0000000..daa9a82 --- /dev/null +++ b/pkgs/cairo/build.sh @@ -0,0 +1,30 @@ +pkgname=cairo +pkgver=master + +fetch() { + curl "https://gitlab.freedesktop.org/cairo/cairo/-/archive/master/cairo-master.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build +} + +build() { + cd $pkgname-$pkgver + cd build + meson .. \ + --buildtype=release \ + --prefix=/usr \ + --libexecdir=lib \ + -Dglib=disabled + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat COPYING* +}