[arch-commits] Commit in liblouis/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 18:24:11 UTC 2015
Date: Saturday, September 19, 2015 @ 20:24:11
Author: foutrelis
Revision: 246680
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
liblouis/repos/staging-i686/
liblouis/repos/staging-i686/PKGBUILD
(from rev 246679, liblouis/trunk/PKGBUILD)
liblouis/repos/staging-i686/liblouis.install
(from rev 246679, liblouis/trunk/liblouis.install)
liblouis/repos/staging-x86_64/
liblouis/repos/staging-x86_64/PKGBUILD
(from rev 246679, liblouis/trunk/PKGBUILD)
liblouis/repos/staging-x86_64/liblouis.install
(from rev 246679, 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 246679, liblouis/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-09-19 18:24:11 UTC (rev 246680)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=liblouis
+pkgver=2.6.3
+pkgrel=2
+pkgdesc="Open-source braille translator and back-translator"
+arch=(i686 x86_64)
+url="http://liblouis.org/"
+license=('GPL3')
+depends=(glibc)
+makedepends=(help2man python2 python)
+install=liblouis.install
+source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha1sums=('b4673678966efcc140ead49aab5e975280b815ce')
+
+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 246679, liblouis/trunk/liblouis.install)
===================================================================
--- staging-i686/liblouis.install (rev 0)
+++ staging-i686/liblouis.install 2015-09-19 18:24:11 UTC (rev 246680)
@@ -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 246679, liblouis/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-09-19 18:24:11 UTC (rev 246680)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=liblouis
+pkgver=2.6.3
+pkgrel=2
+pkgdesc="Open-source braille translator and back-translator"
+arch=(i686 x86_64)
+url="http://liblouis.org/"
+license=('GPL3')
+depends=(glibc)
+makedepends=(help2man python2 python)
+install=liblouis.install
+source=(https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha1sums=('b4673678966efcc140ead49aab5e975280b815ce')
+
+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 246679, liblouis/trunk/liblouis.install)
===================================================================
--- staging-x86_64/liblouis.install (rev 0)
+++ staging-x86_64/liblouis.install 2015-09-19 18:24:11 UTC (rev 246680)
@@ -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