jobextra/ell/PKGBUILD

54 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=ell
pkgver=0.51
pkgrel=01
pkgdesc="Embedded Linux library"
arch=(x86_64)
url="https://01.org/ell"
#url="https://git.kernel.org/pub/scm/libs/ell/ell.git/"
depends=('gcc-libs')
checkdepends=('dbus')
options=('!lto')
#options=('!lto' 'debug') # uncomment if you want debug pkg
# https://mirrors.edge.kernel.org/pub/linux/libs/ell/sha256sums.asc
source=(https://mirrors.edge.kernel.org/pub/linux/libs/$pkgname/$pkgname-$pkgver.tar.{xz,sign})
build() {
cd "$pkgname-$pkgver"
# export CFLAGS+=" -ffat-lto-objects"; export CXXFLAGS+=" -ffat-lto-objects"
./configure --prefix=/usr
make
}
check() {
cd "$pkgname-$pkgver"
# lto error also with export CFLAGS+=" -ffat-lto-objects"
#/usr/bin/ld: /tmp/ccJicHpn.ltrans0.ltrans.o: in function `__wrap_l_getrandom':
#<artificial>:(.text+0x3a71): undefined reference to `l_getrandom'
#collect2: error: ld returned 1 exit status
#make[3]: *** [Makefile:1629: unit/test-ecdh] Error 1
make -k check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1')
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659') # "Marcel Holtmann <marcel@holtmann.org>"
sha256sums=(ba86cfa4aaf10151443edd63a7687914465d969f5dda00a2c1fcb11bd85e417f # ell-0.51.tar.xz
61d8566e16cd15942c7d1ef2b8ab2fc93d7f2644c0855ed624662b38e11b72af) # ell-0.51.tar.sign