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


                                           
          
        



                                            
          
                   
              
                          






                                                                                          

         










                                         



                  


                                      

                                                                                                                                                             
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: 
pkgname=re2c
pkgver=1.3
pkgrel=1
pkgdesc="Fast lexer generator for C and C++"
url="http://re2c.org/"
arch="all"
license="Public-Domain"
depends=""
checkdepends="bash"
makedepends=""
subpackages="$pkgname-doc"
source="https://github.com/skvadrik/re2c/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
	CVE-2020-11958.patch
	"

# secfixes:
#   1.3-r1:
#     - CVE-2020-11958

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make tests
}

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

sha512sums="c7084ab2399fb6b96cef74c1393715d90830f43b82b96af46feb71ef008c0215381c3dbea0b003ff810d869db6021e28001b9d588ad55c616642244b2da09c0e  re2c-1.3.tar.xz
f4376b8e0724d500f665fa60dfd6fb35685a281af50c500d2ff90d781a829fb78f21e8c93c5745a4519acd55a62ec48a570dbfacf0a9ee977502e06f3e2e474a  CVE-2020-11958.patch"