summaryrefslogblamecommitdiff
path: root/system/fakeroot/APKBUILD
blob: c2eba98328c4613b2b6bc53948958a85e425580b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
                
             
        
                                                  
          
                  

                                      


                                                   
                             
                          
                                                                    
                                                                                                                         
                           
                                            
                             
                                   


                       
         


                                                                
 

                     









                                                                        
         
                            

 
           


                                      
                                                                                                                                                                         
                                                                                                                                                     
                                                                                                                                                                      
                                                                                                                                                       
                                                                                                                                                             
                                                                                                                                                  
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=fakeroot
pkgver=1.25.3
pkgrel=0
pkgdesc="Tool for simulating superuser privileges"
arch="all"
license="GPL-3.0+"
url="https://wiki.debian.org/FakeRoot"
depends=""
makedepends_build="libtool autoconf automake po4a"
makedepends_host="libcap-dev acl-dev linux-headers"
makedepends="$makedepends_build $makedepends_host"
checkdepends="bash sharutils"
subpackages="$pkgname-doc"
# find timestamp here: https://snapshot.debian.org/package/fakeroot/
source="https://snapshot.debian.org/archive/debian/20201008T205817Z/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
	fakeroot-no64.patch
	fakeroot-skip-ipc-sanity-check.patch
	fakeroot-stdint.patch
	fix-shell-in-fakeroot.patch
	xstatjunk.patch
	"

build() {
	# musl does not have _STAT_VER, it's really not used for
	# anything, so define it as zero
	export CFLAGS="-D_STAT_VER=0 $CFLAGS"

	./bootstrap
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static

	make
	cd doc
	po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
}

check() {
	make check VERBOSE=x
}

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

sha512sums="b54366ef82b49af414d7214d069a4bc7dd188dfa4f8e3121f6bd65fd67268b02346ff72e857087243ab0efe9fa82faaa9f9c3309cac4b5af0ea00908c2e5eb6e  fakeroot_1.25.3.orig.tar.gz
7a832e6bed3838c7c488e0e12ba84b8d256e84bbb06d6020247452a991de505fa5c6bd7bcb84dce8753eb242e0fcab863b5461301cd56695f2b003fe8d6ff209  fakeroot-no64.patch
f1dcd9c34e74eb225c6a96262847e70f86f437c6bcf41c5d554ced2e3d08798296a66310296cc0ab177a7ea5a0271151326a3e79f72e4ed640b3bd20dbaabec1  fakeroot-skip-ipc-sanity-check.patch
ed7a58b0d201139545420f9e5429f503c00e00f36dea84473e77ea99b23bb8d421da1a8a8ce98ff90e72e378dff4cb9ea3c1a863a969899a5f50dfac3b9c5fac  fakeroot-stdint.patch
47593b3d86a66bab832c50a1d967cdc70e42bbd9ef4436f18140067ccefdd6418516e5157102c67e604f3623ed1b9f4fe1423fc5dad4dfe5356fc250c12818a7  fix-shell-in-fakeroot.patch
5efd33fd778bd94a529ed7e439fb8fea25ff865dda3f6f9e431264e942b37f3b5d7a0ad14107b55c5fa81b86efd5a82aedb3803cfab08ec57f27f5b229d2fe88  xstatjunk.patch"