-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump(tur/pacman-contrib): 1.10.6 (#1257)
overhaul build script
- Loading branch information
Showing
1 changed file
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
TERMUX_PKG_HOMEPAGE=https://gitlab.archlinux.org/pacman/pacman-contrib | ||
TERMUX_PKG_DESCRIPTION="Additional libalpm utilities contributed by Arch community" | ||
TERMUX_PKG_LICENSE="GPL-3.0" | ||
TERMUX_PKG_MAINTAINER="@flosnvjx" | ||
TERMUX_PKG_VERSION=1.7.1 | ||
TERMUX_PKG_MAINTAINER="@termux-user-repository" | ||
TERMUX_PKG_VERSION=1.10.6 | ||
TERMUX_PKG_SRCURL="https://gitlab.archlinux.org/pacman/pacman-contrib/-/archive/v$TERMUX_PKG_VERSION/pacman-contrib-v$TERMUX_PKG_VERSION.tar.gz" | ||
TERMUX_PKG_SHA256=81ad0af095fa2a686975bc11b4eb3b6602da60196e82819fb7a92f6fae5bf16d | ||
TERMUX_PKG_SHA256=fe8456638444ee6bead13ed526e047f8d251188582c085551afb29774ec468a8 | ||
TERMUX_PKG_DEPENDS="pacman" | ||
TERMUX_PKG_BUILD_DEPENDS="asciidoc, perl, bsdtar" | ||
TERMUX_PKG_RECOMMENDS="diffutils, bsdtar" | ||
TERMUX_PKG_SUGGESTS="vim, mlocate, perl" | ||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-git-version" | ||
#TERMUX_PKG_AUTO_UPDATE=true | ||
TERMUX_PKG_BUILD_IN_SRC=true | ||
TERMUX_PKG_AUTO_UPDATE=true | ||
TERMUX_PKG_UPDATE_METHOD=repology | ||
TERMUX_PKG_SERVICE_SCRIPT=( | ||
'paccache' 'exec paccache -r 2>&1' | ||
'pacman-filesdb-refresh' 'exec pacman -Fy 2>&1' | ||
) | ||
TERMUX_PKG_RM_AFTER_INSTALL=" | ||
lib | ||
bin/checkupdates | ||
bin/paclist | ||
share/man/man8/checkupdates.8 | ||
share/man/man8/paclist.8 | ||
share/zsh/site-functions/_checkupdates | ||
share/zsh/site-functions/_paclist | ||
" | ||
|
||
termux_step_pre_configure() { | ||
cd $TERMUX_PKG_SRCDIR | ||
export PKG_CONFIG_PATH="$TERMUX_PREFIX/share/pkgconfig" | ||
./autogen.sh | ||
} | ||
|
||
termux_step_post_make_install() { | ||
rm -rf $TERMUX_PREFIX/usr/lib/systemd | ||
|
||
## pactree -s may require `pacman-key --init` | ||
local disabledUtils=(checkupdates paclist) | ||
local util= | ||
for util in $disabledUtils;do | ||
rm $TERMUX_PREFIX/bin/$util | ||
rm $TERMUX_PREFIX/share/man/man8/$util.8* || : | ||
rm $TERMUX_PREFIX/share/zsh/site-functions/_$util || : | ||
done | ||
} |