[arch-commits] Commit in liblouis/repos (6 files)

Felix Yan fyan at nymeria.archlinux.org
Tue Mar 18 11:08:00 UTC 2014


    Date: Tuesday, March 18, 2014 @ 12:08:00
  Author: fyan
Revision: 208158

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  liblouis/repos/staging-i686/
  liblouis/repos/staging-i686/PKGBUILD
    (from rev 208157, liblouis/trunk/PKGBUILD)
  liblouis/repos/staging-i686/liblouis.install
    (from rev 208157, liblouis/trunk/liblouis.install)
  liblouis/repos/staging-x86_64/
  liblouis/repos/staging-x86_64/PKGBUILD
    (from rev 208157, liblouis/trunk/PKGBUILD)
  liblouis/repos/staging-x86_64/liblouis.install
    (from rev 208157, liblouis/trunk/liblouis.install)

---------------------------------+
 staging-i686/PKGBUILD           |   32 ++++++++++++++++++++++++++++++++
 staging-i686/liblouis.install   |   20 ++++++++++++++++++++
 staging-x86_64/PKGBUILD         |   32 ++++++++++++++++++++++++++++++++
 staging-x86_64/liblouis.install |   20 ++++++++++++++++++++
 4 files changed, 104 insertions(+)

Copied: liblouis/repos/staging-i686/PKGBUILD (from rev 208157, liblouis/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2014-03-18 11:08:00 UTC (rev 208158)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=liblouis
+pkgver=2.5.2
+pkgrel=3
+pkgdesc="Open-source braille translator and back-translator"
+arch=(i686 x86_64)
+url="http://code.google.com/p/liblouis/"
+license=('GPL3')
+depends=(glibc)
+makedepends=(help2man python2 python)
+install=liblouis.install
+source=(http://liblouis.googlecode.com/files/$pkgname-$pkgver.tar.gz)
+sha1sums=('   93437f3c3a9a178ad08bdf6daca2a82cf3df2cc2')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+  cd python
+  LD_PRELOAD+=":$srcdir/$pkgname-$pkgver/liblouis/.libs/liblouis.so"
+  python2 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+  python setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+}
+# vim:set ts=2 sw=2 et:

Copied: liblouis/repos/staging-i686/liblouis.install (from rev 208157, liblouis/trunk/liblouis.install)
===================================================================
--- staging-i686/liblouis.install	                        (rev 0)
+++ staging-i686/liblouis.install	2014-03-18 11:08:00 UTC (rev 208158)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(liblouis.info)
+
+post_install() {
+    [ -x usr/bin/install-info ] || return 0
+    for file in ${filelist[@]}; do
+        install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+    done
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+pre_remove() {
+    [ -x usr/bin/install-info ] || return 0
+    for file in ${filelist[@]}; do
+        install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+    done
+}

Copied: liblouis/repos/staging-x86_64/PKGBUILD (from rev 208157, liblouis/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2014-03-18 11:08:00 UTC (rev 208158)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=liblouis
+pkgver=2.5.2
+pkgrel=3
+pkgdesc="Open-source braille translator and back-translator"
+arch=(i686 x86_64)
+url="http://code.google.com/p/liblouis/"
+license=('GPL3')
+depends=(glibc)
+makedepends=(help2man python2 python)
+install=liblouis.install
+source=(http://liblouis.googlecode.com/files/$pkgname-$pkgver.tar.gz)
+sha1sums=('   93437f3c3a9a178ad08bdf6daca2a82cf3df2cc2')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+  cd python
+  LD_PRELOAD+=":$srcdir/$pkgname-$pkgver/liblouis/.libs/liblouis.so"
+  python2 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+  python setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+}
+# vim:set ts=2 sw=2 et:

Copied: liblouis/repos/staging-x86_64/liblouis.install (from rev 208157, liblouis/trunk/liblouis.install)
===================================================================
--- staging-x86_64/liblouis.install	                        (rev 0)
+++ staging-x86_64/liblouis.install	2014-03-18 11:08:00 UTC (rev 208158)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(liblouis.info)
+
+post_install() {
+    [ -x usr/bin/install-info ] || return 0
+    for file in ${filelist[@]}; do
+        install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+    done
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+pre_remove() {
+    [ -x usr/bin/install-info ] || return 0
+    for file in ${filelist[@]}; do
+        install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+    done
+}




More information about the arch-commits mailing list