summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-11 03:50:01 +0000
committerroot <root@rshg054.dnsready.net>2012-06-11 03:50:01 +0000
commit306ac55c1e99cfb5801ef0d9acf2a11d3994d80d (patch)
treee136a61b0cf87647b42519d2e1552067ce45cc87
parent4714cec7e8367a7618b168d0db4bc085dbfaac8a (diff)
Mon Jun 11 03:50:00 UTC 2012
-rw-r--r--pcr/kervala_libsquish-hg/PKGBUILD46
-rw-r--r--social/trytond/PKGBUILD2
2 files changed, 47 insertions, 1 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:
diff --git a/social/trytond/PKGBUILD b/social/trytond/PKGBUILD
index 9f8348f06..237c599f9 100644
--- a/social/trytond/PKGBUILD
+++ b/social/trytond/PKGBUILD
@@ -26,5 +26,5 @@ build() {
cd $srcdir/$pkgname-$pkgver
python2 setup.py install --root=$pkgdir
install -D -m644 etc/trytond.conf $pkgdir/etc/trytond.conf
- install -D -m755 $startdir/trytond.rc $pkgdir/etc/rc.d/trytond
+ install -D -m755 $srcdir/trytond.rc $pkgdir/etc/rc.d/trytond
}