Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libvips #29

Closed
wants to merge 4 commits into from
Closed
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
41 changes: 41 additions & 0 deletions testing/libvips/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Contributor: Will Jordan <will.jordan@gmail.com>
# Maintainer: Will Jordan <will.jordan@gmail.com>
pkgname=libvips
pkgver=8.2.2
pkgrel=1
pkgdesc="A fast image processing library with low memory needs"
url="http://www.vips.ecs.soton.ac.uk/"
arch="all"
license="LGPL 2.1+"
depends="gettext libstdc++ glib libpng tiff libwebp libexif libxml2 orc fftw mozjpeg lcms2"
depends_dev="mozjpeg-dev libexif-dev lcms2-dev"
makedepends="$depends_dev glib-dev libxml2-dev orc-dev automake libtool libpng-dev tiff-dev libwebp-dev fftw-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.vips.ecs.soton.ac.uk/supported/current/vips-$pkgver.tar.gz"

_builddir="$srcdir"/vips-$pkgver
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-debug=no \
--without-python \
--without-gsf \
--disable-static \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--docdir=/usr/share/doc \
|| return 1
make || return 1
}

package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="4a191bb801c4f97bce414a862f2fa8dc vips-8.2.2.tar.gz"
sha256sums="0f688a34e99714ff0901cba8cdf93ec9878447e33dea122f4b226416550a6389 vips-8.2.2.tar.gz"
sha512sums="4a09a0f6042226a99eef964d2cc23a5092b81e6828e290b5d20e8a917022414c539f516d915c2bb17592a8ef99dec8b215fc52d3962d8c1f4ce44443ebbfea35 vips-8.2.2.tar.gz"
50 changes: 50 additions & 0 deletions testing/mozjpeg/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contributor: Will Jordan <will.jordan@gmail.com>
# Maintainer: Will Jordan <will.jordan@gmail.com>
pkgname=mozjpeg
pkgver=3.1
pkgrel=0
pkgdesc="Mozilla JPEG Encoder Project"
url="https://github.com/mozilla/mozjpeg"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev nasm libtool"
install=""
provides="libjpeg-turbo"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/mozilla/mozjpeg/releases/download/v$pkgver/mozjpeg-$pkgver-release-source.tar.gz"

_builddir="$srcdir"/mozjpeg
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--disable-static \
--enable-shared \
--with-turbojpeg=yes \
--with-jpeg8 \
--prefix=/usr \
--bindir=/usr/bin \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share/mozjpeg \
|| return 1
make || return 1
}

package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

dev() {
default_dev
provides="libjpeg-turbo-dev"
}

md5sums="53d8f3f633ea333057e6e4d09323d2b6 mozjpeg-3.1-release-source.tar.gz"
sha256sums="deedd88342c5da219f0047d9a290cd58eebe1b7a513564fcd8ebc49670077a1f mozjpeg-3.1-release-source.tar.gz"
sha512sums="2d6423a1776d1af3e5bea31b6e5e5ff50d9c333befa0a65bf8e502fb2216780136e3bf409e7b8cd52a13b7c2a04bb4496de84d377ab5c4ff7ea327c91d58a498 mozjpeg-3.1-release-source.tar.gz"