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

                                            
                                       
          
              

            
        
                                                        
 
                                    
         
                       
 

                               



                                         



                       
                                    




                                                                         
 
                                                           
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gzip
pkgver=1.4
pkgrel=3
pkgdesc="A popular data compression program"
subpackages="$pkgname-doc"
url="http://www.gnu.org/software/gzip/"
arch="all"
license="GPL2"
depends=
makedepends=
install=
source="http://ftp.gnu.org/gnu/gzip/gzip-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"

	# avoid text relocation
	export DEFS="NO_ASM"
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

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

	mkdir -p "$pkgdir"/bin
	mv "$pkgdir"/usr/bin/gzip "$pkgdir"/usr/bin/gunzip "$pkgdir"/bin/
	ln -s /bin/gzip "$pkgdir"/usr/bin/gzip
	ln -s /bin/gunzip "$pkgdir"/usr/bin/gunzip
}
md5sums="e381b8506210c794278f5527cba0e765  gzip-1.4.tar.gz"