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

Antonio Rojas arojas at archlinux.org
Mon Feb 22 11:13:26 UTC 2021


    Date: Monday, February 22, 2021 @ 11:13:26
  Author: arojas
Revision: 868474

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: lrcalc/repos/community-staging-x86_64/PKGBUILD (from rev 868473, lrcalc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-22 11:13:26 UTC (rev 868474)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lrcalc
+pkgver=2.1
+pkgrel=1
+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")
+sha256sums=('996ac00e6ea8321ef09b34478f5379f613933c3254aeba624b6419b8afa5df57')
+
+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