Last active
December 16, 2015 04:48
-
-
Save Stebalien/5379500 to your computer and use it in GitHub Desktop.
Updated package build for gf2x.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=gf2x | |
pkgver=1.1 | |
pkgrel=1 | |
pkgdesc="A library for multiplying polynomials over the binary field" | |
arch=('i686' 'x86_64') | |
url="http://gforge.inria.fr/projects/gf2x/" | |
license=('GPL' 'LGPL') | |
depends=('glibc') | |
options=('!libtool') | |
source=("http://gforge.inria.fr/frs/download.php/30873/gf2x-1.1.tar.gz") | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
opts="" | |
if ! (fgrep -qw sse2 /proc/cpuinfo) ; then opts="--disable-sse2" ; fi | |
./configure --prefix=/usr $opts | |
make | |
} | |
check() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make -k check | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make prefix="$pkgdir/usr" install | |
} | |
sha256sums=('0d3f01604680102a00ca34e079903cc4d5a3208afda223748979b724d358849f') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment