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

                                      


                                                   
                             
                          
                                                                    
                                                                                                                         

                             


                       
         

                                                                

                                                             
 

                     









                                                                        
         
                            

 
           


                                      
                                                                                                                                                                       

                                                                                                                                                       
                                                                                                                                                  
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=fakeroot
pkgver=1.26
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/20210907T092512Z/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
	fakeroot-no64.patch
	fakeroot-stdint.patch
	xstatjunk.patch
	"

build() {
	# musl does not have _STAT_VER, it's really not used for
	# anything, so define it as zero
	# define _ID_T so libfakeroot knows headers define it
	export CFLAGS="-D_STAT_VER=0 -D_ID_T $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="dad193b283b48a25806c5bcd06d1f5bbd183ccd40a3fc25f3e7bb88fd6579024f958321f8336654348a1d0a547d4ad19ed11aab5ec9441d6ef493ee6e4c78081  fakeroot_1.26.orig.tar.gz
7a832e6bed3838c7c488e0e12ba84b8d256e84bbb06d6020247452a991de505fa5c6bd7bcb84dce8753eb242e0fcab863b5461301cd56695f2b003fe8d6ff209  fakeroot-no64.patch
ed7a58b0d201139545420f9e5429f503c00e00f36dea84473e77ea99b23bb8d421da1a8a8ce98ff90e72e378dff4cb9ea3c1a863a969899a5f50dfac3b9c5fac  fakeroot-stdint.patch
5efd33fd778bd94a529ed7e439fb8fea25ff865dda3f6f9e431264e942b37f3b5d7a0ad14107b55c5fa81b86efd5a82aedb3803cfab08ec57f27f5b229d2fe88  xstatjunk.patch"