diff options
author | Shackra Sislock <jorgean@lavabit.com> | 2013-07-27 14:57:48 -0600 |
---|---|---|
committer | Shackra Sislock <jorgean@lavabit.com> | 2013-07-27 14:57:48 -0600 |
commit | c5901ce7e2618d91d0745e285a7bffcd0ceaf406 (patch) | |
tree | 0d176ee9c8aa9aa2747f437bfb8decfd0bdfeceb /pcr/kervalasquish-hg/PKGBUILD | |
parent | 4e2b38c122e49c912ecaa01d1192a0aadd84a808 (diff) |
packaging libsquish-svn for ryzom, replacing the old libsquish by Kervala
Diffstat (limited to 'pcr/kervalasquish-hg/PKGBUILD')
-rw-r--r-- | pcr/kervalasquish-hg/PKGBUILD | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/pcr/kervalasquish-hg/PKGBUILD b/pcr/kervalasquish-hg/PKGBUILD deleted file mode 100644 index e5e489950..000000000 --- a/pcr/kervalasquish-hg/PKGBUILD +++ /dev/null @@ -1,72 +0,0 @@ -# Maintainer: Jorge Araya <jorgean@lavabit.com> - -pkgname=kervalasquish-hg -pkgver=220 -pkgrel=2 -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' 'cmake') -provides=('libsquish') -conflicts=('libsquish' - 'kervala_libsquish-hg' - 'kervalasquish-hg') - -_hgroot="http://hg.kervala.net" -_hgrepo="packaging" -cmakerepo="cmake" - -build() { - cd "$srcdir" - msg "Connecting to Kervala's Mercurial server for libsquish..." - - if [[ -d "$_hgrepo" ]]; then - cd "$_hgrepo" - hg pull -u - msg "The local files are updated." - else - hg clone "${_hgroot}/${_hgrepo}" - fi - - msg "Connecting to Kervala's Mercurial server for cmake modules..." - - if [[ -d $srcdir/$cmakerepo ]]; then - cd $srcdir/$cmakerepo - hg pull -u - msg "The local files are updated." - else - cd $srcdir - hg clone ${_hgroot}/${cmakerepo} - fi - - msg "Mercurial checkout done or server timeout" - msg "Starting build..." - - if [[ -d $_hgrepo-build ]]; then - rm -rf "$srcdir/$_hgrepo-build" - fi - - cp -r "$srcdir/$_hgrepo/squish" "$srcdir/$_hgrepo-build" - - if [[ ! -d $_hgrepo-build/CMakeModules ]]; then - mkdir "$srcdir/$_hgrepo-build/CMakeModules" - cp $srcdir/cmake/modules/common.cmake $srcdir/$_hgrepo-build/CMakeModules/ - fi - - if [[ -d $srcdir/$_hgrepo-build/build ]]; then - rm -rf $srcdir/$_hgrepo-build/build - fi - - mkdir "$srcdir/$_hgrepo-build/build" - cd "$srcdir/$_hgrepo-build/build" - cmake -DCMAKE_INSTALL_PREFIX=/usr .. - make -} - -package() { - cd "$srcdir/$_hgrepo-build/build" - make DESTDIR="${pkgdir}" install -} - -# vim:set ts=2 sw=2 et: |