aboutsummaryrefslogblamecommitdiffstats
path: root/community/pcc/APKBUILD
blob: 9293efba3609acdc571dbaf0a92a35abab9c6daf (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                       
           
               
        



                                  
                      
              
                        

                          
                                                                


                                   
                        

                      
                         

                                                           
                            
                                         
                            
 
 








                                         

                                   



                      
                                      


                                               
                                                           

 
                                                                                                                                                               
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Cág <ca6c@bitmessage.ch>
pkgname=pcc
pkgver=20180322
pkgrel=0
pkgdesc="The portable C compiler."
url="http://pcc.ludd.ltu.se/"
arch="x86 x86_64"
license="BSD"
depends="pcc-libs-dev"
depends_dev=""
makedepends="byacc flex"
install=""
subpackages="$pkgname-doc"
source="ftp://pcc.ludd.ltu.se/pub/$pkgname/$pkgname-$pkgver.tgz"

builddir="$srcdir/"$pkgname-$pkgver
prepare() {
	default_prepare 

	cd "$builddir"
	update_config_sub

	sed -i -e 's/AC_CHECK_PROG(strip,strip,yes,no)//' \
		configure.ac
	sed -i -e 's/AC_SUBST(strip)//' \
		configure.ac
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-stripping
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	# Don't conflict with gcc-doc.
	mv "$pkgdir"/usr/share/man/man1/cpp.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname-cpp.1
}

sha512sums="cac044c65477bdacb930ca4f98782272513b06c29da241475e15d96ea3a3a1ff3dfc2baeb25edf23c2f30c7c8d68c484bddcd0a9a4df92faba70f3a4b93112fa  pcc-20180322.tgz"