diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2019-04-22 23:24:30 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2019-04-22 23:24:54 +0300 |
commit | ac725880844916878fa17dabc88d955eef439140 (patch) | |
tree | c224816ffbca22ccaf6cea5ce1c8c8e59de05f2a /community/alpine | |
parent | 49bb78227da540ae8801f17c72d52a3beec8b288 (diff) | |
download | aports-ac725880844916878fa17dabc88d955eef439140.tar.bz2 aports-ac725880844916878fa17dabc88d955eef439140.tar.xz |
community/alpine: moved from unmaintained
Diffstat (limited to 'community/alpine')
-rw-r--r-- | community/alpine/APKBUILD | 55 | ||||
-rw-r--r-- | community/alpine/uclibc-musl.patch | 20 |
2 files changed, 75 insertions, 0 deletions
diff --git a/community/alpine/APKBUILD b/community/alpine/APKBUILD new file mode 100644 index 0000000000..c9c23a3322 --- /dev/null +++ b/community/alpine/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=alpine +pkgver=2.21 +_ver=${pkgver%_p*} +_pver=${pkgver##*_p} +pkgrel=3 +pkgdesc="Text-based email client, friendly for novices but powerful" +url="http://www.washington.edu/alpine/" +arch="all" +license="Apache-2.0" +depends="" +makedepends="openldap-dev heimdal-dev ncurses-dev openssl-dev + automake autoconf libtool" +subpackages="$pkgname-doc" +source="http://alpine.x10host.com/alpine/release/src/alpine-$pkgver.tar.xz + uclibc-musl.patch + " + +_builddir="$srcdir"/$pkgname-$_ver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done + libtoolize --force && aclocal -I m4 && autoconf \ + && automake --force --add-missing || return 1 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-passfile=.pine-pass \ + --without-tcl \ + --disable-shared \ + --with-system-pinerc=/etc/alpine.d/pine.conf \ + --with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed \ + || return 1 + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +sha512sums="a2a36a033c8af79810816a7da7185c269808ba6d84d013691fd8b3764c63f5fb2284e6844ec5a5e99d168514ae636debf59fae962533a2916679e4e9109c6264 alpine-2.21.tar.xz +1b14352571dd12749bbb6ebc1fd468dbb5a8e4d7a27e87f5baeb00a60d5c1a016d925c6bc776da7e1dbf0ad8d799a65049b64774113274d7ffb07c7b1b196775 uclibc-musl.patch" diff --git a/community/alpine/uclibc-musl.patch b/community/alpine/uclibc-musl.patch new file mode 100644 index 0000000000..9ebe5de183 --- /dev/null +++ b/community/alpine/uclibc-musl.patch @@ -0,0 +1,20 @@ +--- ./configure.ac.orig ++++ ./configure.ac +@@ -723,7 +723,7 @@ + else + dnl preload c-client default locations/options + case $host in +- *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*) ++ *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*|*-linux-uclibc|*-linux-musl*) + if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then + alpine_SSLTYPE="nopwd" + if test -d /etc/pki/tls ; then +@@ -1059,7 +1059,7 @@ + dnl build from c-client. Most of this will go away when c-client + dnl adopts configure + case "$host" in +- *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*) ++ *-linux-gnu*|*-k*bsd*-gnu*|*-gnu*|*-linux-uclibc|*-linux-musl*) + alpine_path_delim="/" + alpine_mode_readonly="(0600)" + if test -f /etc/fedora-release ; then |