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

         
         






                                           
                              



            



                  





                                                      
                                                                                                                                                            
                                                                                                                                                            
                                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=sed
pkgver=4.9
pkgrel=0
pkgdesc="GNU stream editor"
url="https://www.gnu.org/software/sed"
arch="all"
license="GPL-3.0+"
depends=""
makedepends="perl"
subpackages="$pkgname-doc $pkgname-lang"
install="$pkgname.post-deinstall"
source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz
	disable-mbrtowc-test.patch
	gnulib-tests-dont-require-gpg-passphrase.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/bin \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-i18n
	make
}

check() {
	make check
}

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

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

sha512sums="36157a4b4a2430cf421b7bd07f1675d680d9f1616be96cf6ad6ee74a9ec0fe695f8d0b1e1f0b008bbb33cc7fcde5e1c456359bbbc63f8aebdd4fedc3982cf6dc  sed-4.9.tar.xz
103ab7c87a920dcd73a95a5d93a722082ff48a782cd85f68f493abfb9c9acd52323ca368a4bd807d8435f4c26ae2e3d9ec00372959d4a1aa05c2583a931d64b8  disable-mbrtowc-test.patch
8dc38bbd731885c69e83d2ed45d5df28542d9401f196295871135aa157d48ac77f1f926afcaab3ee0098ab0eb6232efc4664060177c3bf109a3e673f5adf9b85  gnulib-tests-dont-require-gpg-passphrase.patch"