2 Star 25 Fork 2

swiftycode/CLItheme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PKGBUILD 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
swiftycode 提交于 2025-01-01 16:59 +08:00 . Update version (v2.0-beta3)
# Maintainer: swiftycode <3291929745@qq.com>
pkgname='clitheme'
pkgver=2.0_beta3
pkgrel=1
pkgdesc="A text theming library for command line applications"
arch=('any')
url="https://gitee.com/swiftycode/clitheme"
license=('GPL3')
depends=('python>=3.8' 'sqlite>=3' 'man-db')
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'gzip')
checkdepends=()
optdepends=()
provides=()
conflicts=($pkgname)
replaces=()
backup=()
options=()
install=
changelog='debian/changelog'
source=("srctmp::git+file://$PWD") # Commit any active changes before building the package!
noextract=()
md5sums=('SKIP')
validpgpkeys=()
# Make sure that it doesn't conflict with "src" directory
BUILDDIR="$PWD/buildtmp"
pkgver(){
cd srctmp
cd src/clitheme
pkgrel=$(python3 -c "from _version import version_buildnumber; print(version_buildnumber)")
python3 -c "from _version import version_main; print(version_main)"
}
build() {
cd srctmp
python3 -m build --wheel --no-isolation
}
check() {
cd srctmp
echo -n "Ensuring generated wheel files exist..."
test ! -f dist/*.whl && echo "Error" && return 1
echo "OK"
# manpage
echo "Ensuring manpage files (in docs directory) exist:"
echo -n "docs/clitheme.1 ..."
test ! -f docs/clitheme.1 && echo "Error" && return 1
echo "OK"
echo -n "docs/clitheme-exec.1 ..."
test ! -f docs/clitheme-exec.1 && echo "Error" && return 1
echo "OK"
echo -n "docs/clitheme-man.1 ..."
test ! -f docs/clitheme-man.1 && echo "Error" && return 1
echo "OK"
}
package() {
cd srctmp
python3 -m installer --destdir="$pkgdir" dist/*.whl
# install manpage
mkdir -p $pkgdir/usr/share/man/man1
gzip -c docs/clitheme.1 > $pkgdir/usr/share/man/man1/clitheme.1.gz
gzip -c docs/clitheme-exec.1 > $pkgdir/usr/share/man/man1/clitheme-exec.1.gz
gzip -c docs/clitheme-man.1 > $pkgdir/usr/share/man/man1/clitheme-man.1.gz
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/swiftycode/clitheme.git
git@gitee.com:swiftycode/clitheme.git
swiftycode
clitheme
CLItheme
latest-STABLE

搜索帮助