[arch-commits] Commit in lrcalc/repos (2 files)

Antonio Rojas arojas at archlinux.org
Sun Feb 21 12:19:56 UTC 2021


    Date: Sunday, February 21, 2021 @ 12:19:55
  Author: arojas
Revision: 867633

archrelease: copy trunk to community-staging-x86_64

Added:
  lrcalc/repos/community-staging-x86_64/
  lrcalc/repos/community-staging-x86_64/PKGBUILD
    (from rev 867632, lrcalc/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: lrcalc/repos/community-staging-x86_64/PKGBUILD (from rev 867632, lrcalc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-21 12:19:55 UTC (rev 867633)
@@ -0,0 +1,42 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lrcalc
+pkgver=2.0
+pkgrel=3
+pkgdesc="Littlewood-Richardson calculator"
+arch=(x86_64)
+url="https://math.rutgers.edu/~asbuch/lrcalc/"
+license=(GPL3)
+depends=(glibc)
+makedepends=(python-setuptools cython)
+replaces=(lrcalc1)
+source=("https://math.rutgers.edu/~asbuch/lrcalc/$pkgname-$pkgver.tar.gz"
+         lrcalc-python-bindings.patch::"https://bitbucket.org/asbuch/lrcalc/commits/08bd8dd5/raw")
+sha256sums=('f05f16e51c45a35c1c24ef5f70fc3e822515b8de5d929b391801f68c493d5f43'
+            '7b115f47f5953f348f991e3aeed7e6d18ff306dee573d34f565fb0d5a9c0e43a')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < lrcalc-python-bindings.patch # Add python bindings
+  sed -e "s|setup(|setup(name='lrcalc', version=$pkgver,|" -i $pkgname-$pkgver/python/setup.py # Fix metadata
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+
+# install to a temp dir to build python bindings
+  make DESTDIR="$PWD"/tmp-install install
+
+  cd python
+  export CFLAGS+=" -I${srcdir}/$pkgname-$pkgver/tmp-install/usr/include" LDFLAGS+=" -L${srcdir}/$pkgname-$pkgver/tmp-install/usr/lib"
+  python setup.py build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  cd python
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list