PKGBUILDs/community/lrs/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2019-07-09 13:55:24 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix up makefile for 32-bit builds
pkgname=lrs
2022-03-31 13:18:52 +00:00
pkgver=072
2019-07-09 13:55:24 +00:00
_pkgver=${pkgver/./}
2020-10-18 19:36:47 +00:00
pkgrel=1
2021-06-04 17:08:36 +00:00
pkgdesc='C implementation of the reverse search algorithm for vertex enumeration/convex hull problems'
2019-07-09 13:55:24 +00:00
arch=(x86_64)
2021-06-04 17:08:36 +00:00
url='http://cgm.cs.mcgill.ca/~avis/C/lrs.html'
2019-07-09 13:55:24 +00:00
license=(GPL)
depends=(gmp)
2021-06-04 17:08:36 +00:00
source=(http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$_pkgver.tar.gz
2019-07-09 13:55:24 +00:00
lrs-system-cflags.patch
2020-06-04 12:55:36 +00:00
32-bit-support.patch)
2022-03-31 13:18:52 +00:00
sha256sums=('fc48754a1ded1d8445d40ecfbe3546e4f27d53aaee95dc2c8c0c79fb9cd532f0'
2021-06-04 17:08:36 +00:00
'617ed06ae2584ef3349a3b1f6ab1a4acd11f18211394458498e1223a65bb0e73'
2022-03-31 13:18:52 +00:00
'9d8ae8d964c7f2342cdeab105776963aea5d7e20db656b0e87b0290593859dc9')
2019-07-09 13:55:24 +00:00
prepare() {
2020-10-18 19:36:47 +00:00
cd lrslib-$_pkgver
2019-07-09 13:55:24 +00:00
patch -p1 -i ../lrs-system-cflags.patch # Use system CFLAGS/LDFLAGS
2021-06-04 17:08:36 +00:00
[[ $CARCH != "aarch64" ]] && patch -p0 -i ../32-bit-support.patch || true
2019-07-09 13:55:24 +00:00
}
build() {
2020-10-18 19:36:47 +00:00
cd lrslib-$_pkgver
2020-06-04 12:55:36 +00:00
make
2019-07-09 13:55:24 +00:00
}
package() {
2020-10-18 19:36:47 +00:00
cd lrslib-$_pkgver
2019-07-09 13:55:24 +00:00
make DESTDIR="$pkgdir" prefix=/usr install
}