aboutsummaryrefslogblamecommitdiffstats
path: root/main/tar/APKBUILD
blob: 08f38277182dd0b9525556d440d9466b15266da5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                          
           
           
        
                                                            
                                       
          

                          
                          
                                                      
                                         
 


                     

                      
 
         

                                            



                                 
                                   
                                         

                                    

 
         

                  
 
           
                                       

                                              
                                                      
 


                                               

 
                                                                                                                                                             
                                                                                                                                                                   
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=tar
pkgver=1.33
pkgrel=1
pkgdesc="Utility used to store, backup, and transport files"
url="https://www.gnu.org/software/tar/"
arch="all"
license="GPL-3.0-or-later"
makedepends="acl-dev"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/tar/tar-$pkgver.tar.xz
	ignore-apk-tools-checksums.patch"

# secfixes:
#   1.29-r1:
#     - CVE-2016-6321
#   1.31-r0:
#     - CVE-2018-20482

build() {
	gl_cv_func_gettimeofday_clobber=no \
	gl_cv_func_tzset_clobber=no \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

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

	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true

	mkdir "$pkgdir"/bin
	mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/
	ln -s /bin/tar "$pkgdir"/usr/bin/tar
}

sha512sums="d7c31147fafcd815bb54e3862c078dccc3f192a9fa149c2275bd89a21fcd54a4bdaa8343cacf4f76cadc2f57fd4ed955682c1b6f23d438add5a13cc35bd25260  tar-1.33.tar.xz
9cde0f1509328bc5fe2cb46642b53c7681c548cf28a2fb83eda7e9374c9c0ad27a0cd55b9c0cc93951def58dafa55ee71cace5493ddcb7966ee94dc5f1099739  ignore-apk-tools-checksums.patch"