Browse Source
* build-package.sh: allow for arrays in TERMUX_PKG_{SRCURL,SHA256} Packages that require several source archives can then set these parameters to arrays instead of downloading them "manually" in termux_step_post_extract. Downloaded files are extracted into subfolders in TERMUX_PKG_SRCDIR. Tested for backward compatibility in a couple of packages and the combinations tar + tar, zip + tar, tar + zip, zip + zip. * perl: download perl-cross through TERMUX_PKG_SRCURL * perl: remove $PREFIX/{lib/libperl.so,include/perl} before build Otherwise building perl twice doesn't give the same results, symlinks are messed up. Also remove old remnant from when there was a Kid.pm.patch. * bash: fix tiny typo * ecj: remove hardcoded SHA256 and pkg version * elfutils: download argp-standalone through TERMUX_PKG_SRCURL * ldc: download all src archives through TERMUX_PKG_SRCURL * libgc: download libatomic_ops through TERMUX_PKG_SRCURL * libllvm: download all src archives through TERMUX_PKG_SRCURL * linux-man-pages: download src archives through TERMUX_PKG_SRCURL * ncurses: download all src archives through TERMUX_PKG_SRCURL * pngquant: download lib sources through TERMUX_PKG_SRCURL Use .zip for lib since the downloaded archives are otherwise both named $TERMUX_PKG_VERSION.tar.gz and replace each other. This causes caching to not work.android-5
Henrik Grimler
7 years ago
committed by
Fredrik Fornwall
11 changed files with 113 additions and 159 deletions
@ -1,18 +1,14 @@ |
|||||
TERMUX_PKG_HOMEPAGE=http://www.hboehm.info/gc/ |
TERMUX_PKG_HOMEPAGE=http://www.hboehm.info/gc/ |
||||
TERMUX_PKG_DESCRIPTION="Library providing the Boehm-Demers-Weiser conservative garbage collector" |
TERMUX_PKG_DESCRIPTION="Library providing the Boehm-Demers-Weiser conservative garbage collector" |
||||
TERMUX_PKG_VERSION=7.6.4 |
TERMUX_PKG_VERSION=(7.6.4 |
||||
TERMUX_PKG_SHA256=b94c1f2535f98354811ee644dccab6e84a0cf73e477ca03fb5a3758fb1fecd1c |
7.6.4) |
||||
TERMUX_PKG_SRCURL=https://github.com/ivmai/bdwgc/releases/download/v$TERMUX_PKG_VERSION/gc-$TERMUX_PKG_VERSION.tar.gz |
TERMUX_PKG_SHA256=(b94c1f2535f98354811ee644dccab6e84a0cf73e477ca03fb5a3758fb1fecd1c |
||||
|
5b823d5a685dd70caeef8fc50da7d763ba7f6167fe746abca7762e2835b3dd4e) |
||||
|
TERMUX_PKG_SRCURL=(https://github.com/ivmai/bdwgc/releases/download/v$TERMUX_PKG_VERSION/gc-$TERMUX_PKG_VERSION.tar.gz |
||||
|
https://github.com/ivmai/libatomic_ops/releases/download/v${TERMUX_PKG_VERSION[1]}/libatomic_ops-${TERMUX_PKG_VERSION[1]}.tar.gz) |
||||
TERMUX_PKG_RM_AFTER_INSTALL="share/gc" |
TERMUX_PKG_RM_AFTER_INSTALL="share/gc" |
||||
|
|
||||
termux_step_post_extract_package () { |
termux_step_post_extract_package () { |
||||
LIBATOMIC_VERSION=7.6.4 |
mv libatomic_ops-${TERMUX_PKG_VERSION[1]} libatomic_ops |
||||
LIBATOMIC_FILE=libatomic_ops-${LIBATOMIC_VERSION}.tar.gz |
|
||||
termux_download \ |
|
||||
https://github.com/ivmai/libatomic_ops/releases/download/v${LIBATOMIC_VERSION}/libatomic_ops-${LIBATOMIC_VERSION}.tar.gz \ |
|
||||
$TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE \ |
|
||||
5b823d5a685dd70caeef8fc50da7d763ba7f6167fe746abca7762e2835b3dd4e |
|
||||
tar xf $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE |
|
||||
mv libatomic_ops-${LIBATOMIC_VERSION} libatomic_ops |
|
||||
./autogen.sh |
./autogen.sh |
||||
} |
} |
||||
|
@ -1,21 +1,17 @@ |
|||||
TERMUX_PKG_HOMEPAGE=https://pngquant.org |
TERMUX_PKG_HOMEPAGE=https://pngquant.org |
||||
TERMUX_PKG_DESCRIPTION="PNG image optimising utility" |
TERMUX_PKG_DESCRIPTION="PNG image optimising utility" |
||||
TERMUX_PKG_VERSION=2.11.7 |
TERMUX_PKG_VERSION=2.11.7 |
||||
TERMUX_PKG_SHA256=0ca09a1f253b264e5aab8477b7f0e3cde51d9f88ed668b38ae057ced24076bda |
TERMUX_PKG_SHA256=(0ca09a1f253b264e5aab8477b7f0e3cde51d9f88ed668b38ae057ced24076bda |
||||
TERMUX_PKG_SRCURL=https://github.com/pornel/pngquant/archive/$TERMUX_PKG_VERSION.tar.gz |
6b912616cfb60c5ff49f316649e1279bd7a1d797d6ace0bdbb532ebdf778a8bd) |
||||
|
# If both archives are .tar.gz then they overwrite eachother since they are the same version and hence the same name. |
||||
|
# Work around this by using .zip for one of them... |
||||
|
TERMUX_PKG_SRCURL=(https://github.com/pornel/pngquant/archive/$TERMUX_PKG_VERSION.tar.gz |
||||
|
https://github.com/ImageOptim/libimagequant/archive/$TERMUX_PKG_VERSION.zip) |
||||
TERMUX_PKG_DEPENDS="libpng" |
TERMUX_PKG_DEPENDS="libpng" |
||||
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas" |
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas" |
||||
TERMUX_PKG_BUILD_IN_SRC=true |
TERMUX_PKG_BUILD_IN_SRC=true |
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-sse" |
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-sse" |
||||
|
|
||||
termux_step_post_extract_package () { |
termux_step_post_extract_package () { |
||||
local LIBIMAGEQUANT_SRC_FOLDER=libimagequant-$TERMUX_PKG_VERSION |
mv $TERMUX_PKG_SRCDIR/libimagequant-$TERMUX_PKG_VERSION/* $TERMUX_PKG_SRCDIR/lib/ |
||||
termux_download \ |
|
||||
https://github.com/ImageOptim/libimagequant/archive/$TERMUX_PKG_VERSION.tar.gz \ |
|
||||
$TERMUX_PKG_CACHEDIR/$LIBIMAGEQUANT_SRC_FOLDER.tar.gz \ |
|
||||
aa5c9ae93f245f6703ca3f15c0ffe1ba647f66aac87bbfea0b58ebae9a4e37b5 |
|
||||
|
|
||||
tar -xf $TERMUX_PKG_CACHEDIR/$LIBIMAGEQUANT_SRC_FOLDER.tar.gz -C $TERMUX_PKG_SRCDIR |
|
||||
rmdir $TERMUX_PKG_SRCDIR/lib |
|
||||
mv $TERMUX_PKG_SRCDIR/$LIBIMAGEQUANT_SRC_FOLDER $TERMUX_PKG_SRCDIR/lib |
|
||||
} |
} |
||||
|
Loading…
Reference in new issue