PKGBUILDs/community/lrs/PKGBUILD

40 lines
1.2 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
2020-10-18 19:36:47 +00:00
pkgver=071.a
2019-07-09 13:55:24 +00:00
_pkgver=${pkgver/./}
2020-10-18 19:36:47 +00:00
pkgrel=1
2019-07-09 13:55:24 +00:00
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
2020-06-04 12:55:36 +00:00
lrs-missing-include.patch
32-bit-support.patch)
2020-10-18 19:36:47 +00:00
sha256sums=('926636ea68de46625f141f6e025dce967cc7e68cf4bf4a597375c063f5c11673'
2020-06-04 12:55:36 +00:00
'8e43f9f6c583c653e28b75907f27f616f45f36d6fc677a4aae6a7004d60424c0'
'61da0543e92ab242df1d5adcb6bb842a3c489c011c858705278de1c6cf580649'
'1981f63153f9fbf3730cea68ff68be0645cecbaa385aa63912e3ab22c978c59c')
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
2020-06-04 12:55:36 +00:00
patch -p1 -i ../lrs-missing-include.patch # Install missing header
[[ $CARCH != "aarch64" ]] && patch -p1 -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
}