mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 01:17:14 +08:00
25 lines
731 B
Bash
25 lines
731 B
Bash
#Contributions from Arch: https://www.archlinux.org/packages/community/x86_64/libtommath/
|
|
|
|
pkgname=libtommath
|
|
pkgver=1.0
|
|
pkgrel=1
|
|
pkgdesc="Highly optimized and portable routines for integer based number theoretic applications"
|
|
url="http://www.libtom.org/"
|
|
license=('custom')
|
|
arch=('x86_64')
|
|
source=("https://github.com/libtom/libtommath/archive/v${pkgver}.tar.gz")
|
|
md5sums=('c62fbc717289f492246f8dd4dd72a602')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
CFLAGS="$CFLAGS -fPIC" make -f makefile.shared IGNORE_SPEED=1
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir INSTALL_GROUP=root install
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
chmod 644 ${pkgdir}/usr/lib/libtommath.a
|
|
}
|