This commit is contained in:
joborun linux 2024-04-17 14:29:06 +03:00
parent 51c7f74d2a
commit f48149b4a7
2 changed files with 20 additions and 13 deletions

View File

@ -7,20 +7,24 @@
pkgname=gmp
pkgver=6.3.0
pkgrel=01
pkgrel=02
pkgdesc='A free library for arbitrary precision arithmetic'
url='https://gmplib.org/'
#options=(debug) ## uncomment this line to have the debug pkg produced
depends=(gcc-libs sh)
depends=(gcc-libs sh glibc)
source=(https://gmplib.org/download/gmp/gmp-$pkgver.tar.lz{,.sig})
build() {
cd $pkgname-$pkgver
# Enable shadow stack support
LDFLAGS+=' -Wl,-z,shstk' \
./configure --build=${CHOST} \
--prefix=/usr \
--enable-cxx \
--enable-fat
# Fix overlinking
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@ -31,22 +35,20 @@ check() {
package() {
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
make DESTDIR="$pkgdir" install
}
#---- arch license gpg-key sha256sums ----
arch=(x86_64)
license=(LGPL3 GPL)
license=(GPL-2.0-or-later
LGPL-3.0-or-later)
validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller
sha256sums=(''
'SKIP')
sha256sums=(be5c908a7a836c3a9bd9d62aa58563c5e9e7fef94c43a7f42dbc35bb6d02733c # gmp-6.3.0.tar.lz
ecc20ea069574880a8d482653e4dc2262a92021281c3fcb2c8bb55c44054fe7c) # gmp-6.3.0.tar.lz.sig
## f182b5e8b77c7386fa3141a6073db438ab4a6003a7398ba29176fb0a8ff57604 gmp-6.3.0-01-x86_64.pkg.tar.lz
## 78d076272525a47b4745e79e2f176339dee3c163ebb81230918d9163a153e943 gmp-6.3.0-02-x86_64.pkg.tar.lz

View File

@ -4,12 +4,14 @@
pkgname=gmp
pkgver=6.3.0
pkgrel=1
pkgrel=2
pkgdesc='A free library for arbitrary precision arithmetic'
arch=(x86_64)
url='https://gmplib.org/'
depends=(gcc-libs sh)
license=(LGPL3 GPL)
depends=(gcc-libs
glibc)
license=(GPL-2.0-or-later
LGPL-3.0-or-later)
source=(https://gmplib.org/download/gmp/gmp-$pkgver.tar.lz{,.sig})
sha256sums=('be5c908a7a836c3a9bd9d62aa58563c5e9e7fef94c43a7f42dbc35bb6d02733c'
'SKIP')
@ -17,11 +19,14 @@ validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller
build() {
cd $pkgname-$pkgver
# Enable shadow stack support
LDFLAGS+=' -Wl,-z,shstk' \
./configure --build=${CHOST} \
--prefix=/usr \
--enable-cxx \
--enable-fat
# Fix overlinking
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@ -32,5 +37,5 @@ check() {
package() {
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
make DESTDIR="$pkgdir" install
}