Skip to content

Instantly share code, notes, and snippets.

@pwl
Created May 26, 2012 12:35
Show Gist options
  • Save pwl/2793795 to your computer and use it in GitHub Desktop.
Save pwl/2793795 to your computer and use it in GitHub Desktop.
PKGBUILD for camlimages
pkgname=camlimages
pkgver=4.0.1
pkgrel=1
pkgdesc="Objective Caml image processing library"
arch=(i686 x86_64)
url="http://gallium.inria.fr/camlimages"
license=('GPL2')
depends=('libpng' 'libtiff' 'libxpm' 'libungif' 'freetype2' 'libjpeg')
makedepends=('ocaml' 'omake')
md5sums=('e2e1c7360f6a13fa1c5bbc51e7d05444')
source=("https://bitbucket.org/camlspotter/camlimages/get/be11a5f94a81.tar.gz")
sname=camlspotter-camlimages-be11a5f94a81
build() {
cd "$srcdir/$sname"
yes no | omake --install
omake || return 1
}
package () {
mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs"
cd $srcdir/$sname
OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
omake install
install -Dm 644 License.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment