extra/libcbor: fix

This commit is contained in:
Kevin Mihelich 2020-04-12 20:26:42 +00:00
parent 95b7a29624
commit 538c0a01f3

View file

@ -3,6 +3,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove -flto from CMakeLists
# - upstream patch to fix FTBFS
pkgname=libcbor
pkgver=0.6.1
@ -14,12 +15,16 @@ license=('MIT')
depends=('glibc')
makedepends=('cmake' 'cmocka')
provides=('libcbor.so')
source=(https://github.com/PJK/libcbor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('19309b84d4d88ae1179f3686bd246d977710801c1603915c51f618ba76727e94')
b2sums=('2a258bc5dea44e54d32012d8f4937330c721ceac380317413dc3a5e52ae998e81785623b86833035151b8f17c5591a797e534ba7f1b66ac26dba58c3ad300afc')
source=(https://github.com/PJK/libcbor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
https://github.com/PJK/libcbor/commit/cdeef0a4ac3e281feca741be79ab855da4e9f855.patch)
sha256sums=('2f805f5fa2790c4fdd16046287f5814703229547da2b83009dd32357623aa182'
'69e3b8238a747732885876d130da2c9cf181a096cf257915b04995dc1e9e9e4d')
b2sums=('9a2415c1dde7ed611075c3b03ea1d8ab63bcb00dfc0cae3d7a3bb225b6fbee2a8f576b1f0f97eb6f0cf14c1a6e9df1c77f69320bac041287b0dec37c073f8b85'
'3ad723bb1b91c1aeb4d9fb69e5f48c4b2fc13ed3c13fe14337405638ed477e579a51616119a4529d12b61953c1fed4db60c36475c725d2f7167754c0705136b2')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../cdeef0a4ac3e281feca741be79ab855da4e9f855.patch
sed -i 's/-flto//g' CMakeLists.txt
}