summaryrefslogtreecommitdiff
path: root/pcr/kervala_libsquish-hg/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Silva <marcio@pc-02.localdomain>2012-06-11 16:07:02 -0300
committerMárcio Silva <marcio@pc-02.localdomain>2012-06-11 16:07:02 -0300
commitc9fac1e465cceec9e9c8439978d9eb0c5a556676 (patch)
tree3b6b9e5842d8cc625fa8557e000f92e4a0ff7993 /pcr/kervala_libsquish-hg/PKGBUILD
parent5d9e43e2246de3d18b1a0eb17c3c05902eba3375 (diff)
parent6d006ae5a02b1276e0fe231c95a23465e126e759 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/kervala_libsquish-hg/PKGBUILD')
-rw-r--r--pcr/kervala_libsquish-hg/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/kervala_libsquish-hg/PKGBUILD b/pcr/kervala_libsquish-hg/PKGBUILD
new file mode 100644
index 000000000..f75e1aba7
--- /dev/null
+++ b/pcr/kervala_libsquish-hg/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Jorge Araya <jorgean@lavabit.com>
+
+pkgname=kervala_libsquish-hg
+pkgver=220
+pkgrel=1
+pkgdesc="Free Software 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"
+ mkdir -p ${pkgdir}/usr/local/include
+ mkdir -p ${pkgdir}/usr/local/lib
+ make -e INSTALL_DIR="$pkgdir/usr/local" install
+}
+
+# vim:set ts=2 sw=2 et: