mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to fix up makefile for 32-bit builds
|
|
|
|
pkgname=lrs
|
|
pkgver=071.b
|
|
_pkgver=${pkgver/./}
|
|
pkgrel=1
|
|
pkgdesc='C implementation of the reverse search algorithm for vertex enumeration/convex hull problems'
|
|
arch=(x86_64)
|
|
url='http://cgm.cs.mcgill.ca/~avis/C/lrs.html'
|
|
license=(GPL)
|
|
depends=(gmp)
|
|
source=(http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$_pkgver.tar.gz
|
|
lrs-system-cflags.patch
|
|
32-bit-support.patch)
|
|
sha256sums=('df22682cd742315fe04f866cfe4804d5950f7dc7f514d5b5f36f5b7f5aff9188'
|
|
'617ed06ae2584ef3349a3b1f6ab1a4acd11f18211394458498e1223a65bb0e73'
|
|
'6d04500e37d1917ad64e86195f47b05425ae1b6ba2bbbddd78166af10d2327a8')
|
|
|
|
prepare() {
|
|
cd lrslib-$_pkgver
|
|
patch -p1 -i ../lrs-system-cflags.patch # Use system CFLAGS/LDFLAGS
|
|
[[ $CARCH != "aarch64" ]] && patch -p0 -i ../32-bit-support.patch || true
|
|
}
|
|
|
|
build() {
|
|
cd lrslib-$_pkgver
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd lrslib-$_pkgver
|
|
make DESTDIR="$pkgdir" prefix=/usr install
|
|
}
|