summaryrefslogblamecommitdiff
path: root/user/libgit2/APKBUILD
blob: 5026d5cb3f9131b42718c0f7e35804a08cc4a509 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    

                                                              
                                                 
               
             
        
                                                               
                          
          
                      

                                  
                                                                             
                          
                                                                                             
                                        
         

           



                    








                    


                                                     

                                                      



            
                                            
                                                      


           


                                      
                                                                                                                                                                   
                                                                                                                                                                   
# Contributor: Sergey Lukin <sergej.lukin@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Pierre-Gilas MILLON <pgmillon@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libgit2
pkgver=0.28.5
pkgrel=0
pkgdesc="Pure C re-entrant library for custom Git applications"
url="https://libgit2.org/"
arch="all"
license="GPL-2.0-only"
depends=""
depends_dev="curl-dev libssh2-dev"
makedepends="$depends_dev cmake http-parser-dev openssl-dev python3 zlib-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
	remove-flaky-revparse-test.patch
	"

# secfixes:
#   0.27.3-r0:
#   - CVE-2018-10887
#   - CVE-2018-10888
#   - CVE-2018-11235
#   0.25.1-r0:
#   - CVE-2016-10128
#   - CVE-2016-10129
#   - CVE-2016-10130
#   0.24.3-r0:
#   - CVE-2016-8568
#   - CVE-2016-8569

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DPYTHON_EXECUTABLE=/usr/bin/python3 \
		.
	make
}

check() {
	# Don't run online tests by default.
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E 'online'
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="abfea885f46444b0304ae57c32c06f4252afb0093c924da5e1ba10aaed952824d1b84036adb79b5b8ad8bea56a6331a51c62f3b9839aead16c7b26cb4554b53a  libgit2-0.28.5.tar.gz
ac38da9da307a898e68d5b9c0a77136f82fd873daa13f903e67aa8b7274d781d6d917d97d1affcfd7fd24885ac4b27ab91900446c49f842cc39a9fd39e8ba43e  remove-flaky-revparse-test.patch"