aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrubicon <5662-rubicon@users.gitlab.alpinelinux.org>2022-05-11 10:18:12 +0800
committerrubicon <5662-rubicon@users.gitlab.alpinelinux.org>2022-05-11 10:18:12 +0800
commit0e7258f9e41037bcf0d7c2da617c086cc5415c12 (patch)
tree0dbd619f1b3454f11163fcba81218c16067a772c
parent50e194412960002cf3c2096522d5104f4463c190 (diff)
downloadaports-0e7258f9e41037bcf0d7c2da617c086cc5415c12.tar.gz
aports-0e7258f9e41037bcf0d7c2da617c086cc5415c12.tar.bz2
aports-0e7258f9e41037bcf0d7c2da617c086cc5415c12.tar.xz
testing/epic5: upgrade to 2.1.9, add -lite subpackage
-rw-r--r--testing/epic5/APKBUILD40
1 files changed, 31 insertions, 9 deletions
diff --git a/testing/epic5/APKBUILD b/testing/epic5/APKBUILD
index 60586f0605..78a63d9383 100644
--- a/testing/epic5/APKBUILD
+++ b/testing/epic5/APKBUILD
@@ -1,46 +1,68 @@
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=epic5
-pkgver=2.1.7
+pkgver=2.1.9
pkgrel=0
pkgdesc="Enhanced Programmable ircII Client, version 5"
url="http://epicsol.org/"
arch="all"
license="BSD-3-Clause"
-makedepends="libarchive-dev ncurses-dev openssl1.1-compat-dev tcl-dev"
-subpackages="$pkgname-doc $pkgname-script:script:noarch"
+makedepends="libarchive-dev ncurses-dev openssl1.1-compat-dev perl-dev"
+subpackages="$pkgname-doc $pkgname-script:script:noarch $pkgname-lite"
source="http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/epic5-$pkgver.tar.gz
default-to-oftc.patch
"
+# dir for lite variant without libarchive and perl support
+_litedir="$srcdir/$pkgname-$pkgver"/lite
build() {
+ mkdir -p "$_litedir"
+ cp -r configure Makefile.in include source "$_litedir"/
+
./configure \
+ --build="$CBUILD" \
+ --target="$CTARGET" \
+ --prefix=/usr \
+ --with-ipv6
+ make
+
+ cd "$_litedir"
+ ./configure \
+ --build="$CBUILD" \
+ --target="$CTARGET" \
--prefix=/usr \
- --with-ssl \
--with-ipv6 \
- --with-tcl
+ --without-libarchive \
+ --without-perl
make
}
check() {
- ./source/epic5 -v
+ "$builddir"/source/epic5 -v
+ "$_litedir"/source/epic5 -v
}
package() {
make DESTDIR="$pkgdir" install
- rmdir "$pkgdir"/usr/share/epic5/help
install -Dm644 -t "$pkgdir"/usr/share/doc/epic5 \
"$builddir"/doc/*
rm "$pkgdir"/usr/share/doc/epic5/epic*.1
}
script() {
- depends="$pkgname"
pkgdesc="$pkgdesc (bundled scripts)"
+ depends="cmd:$pkgname=$pkgver-r$pkgrel"
amove usr/share/epic5
}
+lite() {
+ pkgdesc="$pkgdesc (dependency-lite variant)"
+ cd "$_litedir"
+ make DESTDIR="$subpkgdir" installbin
+ rm -vrf "$subpkgdir"/usr/share
+}
+
sha512sums="
-2391f07b61b9266d299fc3a7c015f2ff774e360678eb7d35e7a494834abe14612535f6156fc13a88efe6b12b08f8d0bee567648df8615d416eebd35df325f793 epic5-2.1.7.tar.gz
+96fdfea868a90742590b40c1858e36e3f7dca484b5bc0de099a42a8a4dc254f772f98f2c1522a7ecf674100653045bba88b204bca396125592819bbe0288ccca epic5-2.1.9.tar.gz
b89098e2a5ba34b9b28714e3ed94230a5e9b56f455eb4e38d0108229633056df55de6e5a89a2f6459f8b034785b8774bf94eaeb35bfe6353de54b3b013f18da5 default-to-oftc.patch
"