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

                                                
                                             
          
                          
                 
                         
                          

                                                                                
 
           
                       


                                                    
         

                                   
                     


                                 
                                   




                                       
                      


           


                                      
                                                                                                                                                                 
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=email
pkgver=3.1.4
pkgrel=9
pkgdesc="command line SMTP client that's simple"
options="!check" # No testsuite
url="http://www.cleancode.org/projects/email"
arch="all"
license="GPL-2.0-or-later"
depends="openssl"
makedepends="openssl-dev"
subpackages="$pkgname-doc"
source="https://dev.alpinelinux.org/archive/email/email-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-3.1.3" # Release was made with the wrong tarball name

prepare() {
	default_prepare
	sed -i -e 's/^\(VCARD.*\)/\# \1/' email.conf
}

build() {
	# Required under gcc-10
	CFLAGS="$CFLAGS -fcommon" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

check() {
	./src/email -h
}

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

sha512sums="1c57bd0465e82f8a44bea83936e2c48d1fbd1faecf3dfccba6be857c384b2c8d78a0c035c3e434ecb9df6151809fb6b792874bff927623f3adf7d499b61125c0  email-3.1.4.tar.gz"