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

         
         






                                           
                              



            



                  





                                                      

                                                                                                                                                            
                                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=sed
pkgver=4.8
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="7de25d9bc2981c63321c2223f3fbcab61d7b0df4fcf7d4394b72400b91993e1288d8bf53948ed5fffcf5a98c75265726a68ad4fb98e1d571bf768603a108c1c8  sed-4.8.tar.xz
103ab7c87a920dcd73a95a5d93a722082ff48a782cd85f68f493abfb9c9acd52323ca368a4bd807d8435f4c26ae2e3d9ec00372959d4a1aa05c2583a931d64b8  disable-mbrtowc-test.patch
8dc38bbd731885c69e83d2ed45d5df28542d9401f196295871135aa157d48ac77f1f926afcaab3ee0098ab0eb6232efc4664060177c3bf109a3e673f5adf9b85  gnulib-tests-dont-require-gpg-passphrase.patch"