diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-07-21 01:27:21 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-07-21 01:27:21 -0300 |
commit | 00e55470ec5b9f35f1f5dcf79e1481ed1ed0b711 (patch) | |
tree | c69d0e6f19fe6e9f99f34bae7134a07fde3a02c0 /pcr/kervala_libsquish/PKGBUILD | |
parent | db350dd1af3ec66481bc862ea32c67f466f66569 (diff) | |
parent | bfefeb8d707f6c5cd5121a52387e59b1b2c1faf5 (diff) | |
download | abslibre-00e55470ec5b9f35f1f5dcf79e1481ed1ed0b711.tar.gz abslibre-00e55470ec5b9f35f1f5dcf79e1481ed1ed0b711.tar.bz2 abslibre-00e55470ec5b9f35f1f5dcf79e1481ed1ed0b711.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/kervala_libsquish/PKGBUILD')
-rw-r--r-- | pcr/kervala_libsquish/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/kervala_libsquish/PKGBUILD b/pcr/kervala_libsquish/PKGBUILD new file mode 100644 index 000000000..033dd19ec --- /dev/null +++ b/pcr/kervala_libsquish/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Jorge Araya <jorgean@lavabit.com> + +pkgname=kervala_libsquish-hg +pkgver=220 +pkgrel=1 +pkgdesc="Open source DXT compression library, kervala's version" +arch=('i686' 'x86_64') +url="http://code.google.com/p/libsquish/" +license=('MIT') +makedepends=('mercurial' 'gcc-libs') +provides=('libsquish') +conflicts=('libsquish') +source=() + +_hgroot="http://hg.kervala.net" +_hgrepo="packaging" + +build() { + cd "$srcdir" + msg "Connecting to Mercurial server...." + + if [[ -d "$_hgrepo" ]]; then + cd "$_hgrepo" + hg pull -u + msg "The local files are updated." + else + hg clone "${_hgroot}/${_hgrepo}" + fi + + msg "Mercurial checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_hgrepo-build" + cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" + cd "$srcdir/$_hgrepo-build/squish" + make +} + +package() { + cd "$srcdir/$_hgrepo-build/squish" + install -d -m 755 ${pkgdir}/usr/include + install -d -m 755 ${pkgdir}/usr/lib + make -e INSTALL_DIR="$pkgdir/usr/" install +} + +# vim:set ts=2 sw=2 et: |