[arch-commits] Commit in lrcalc/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:24:41 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:24:40
Author: felixonmars
Revision: 1058225
archrelease: copy trunk to community-staging-x86_64
Added:
lrcalc/repos/community-staging-x86_64/
lrcalc/repos/community-staging-x86_64/PKGBUILD
(from rev 1058223, lrcalc/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: lrcalc/repos/community-staging-x86_64/PKGBUILD (from rev 1058223, lrcalc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-30 20:24:40 UTC (rev 1058225)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lrcalc
+pkgver=2.1
+pkgrel=2
+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