PKGBUILDs/extra/lrs/PKGBUILD

38 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
2024-05-31 12:53:59 +00:00
pkgver=073
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'
2024-05-31 12:53:59 +00:00
license=(GPL-2.0-or-later)
depends=(glibc
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)
2024-05-31 12:53:59 +00:00
sha256sums=('c49a4ebd856183473d1d5a62785fcdfe1057d5d671d4b96f3a1250eb1afe4e83'
2021-06-04 17:08:36 +00:00
'617ed06ae2584ef3349a3b1f6ab1a4acd11f18211394458498e1223a65bb0e73'
2024-05-31 12:53:59 +00:00
'09ec4ed0d3e5894ef9542f18db76d5f9c5dd5d88013ee54765a54279911cf3f3')
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
}