add packages

This commit is contained in:
2023-12-18 19:48:22 +00:00
parent 62cb8f7307
commit 1f7e4bdd0e
13 changed files with 81 additions and 34 deletions

View File

@@ -2,7 +2,7 @@
# shellcheck disable=SC2034,SC2154
pkgname=pikaur-git
pkgver=1.10.1.r45.gc48c41b
pkgver=1.18.3.r15.g163aa82
pkgrel=1
pkgdesc="AUR helper which asks all questions before installing/building. Inspired by pacaur, yaourt and yay."
arch=('any')
@@ -11,7 +11,7 @@ license=('GPL3')
source=(
"$pkgname::git+https://github.com/actionless/pikaur.git#branch=master"
)
md5sums=(
b2sums=(
"SKIP"
)
depends=(
@@ -19,11 +19,17 @@ depends=(
'git'
)
makedepends=(
'python-commonmark'
'python-wheel'
'python-hatchling'
'python-build'
'python-installer'
'python-setuptools' # i think it normally should be required by python-pep517 which required by python-build/installer
'python-markdown-it-py'
)
optdepends=(
'asp: for ABS support in -G/--getpkgbuild operation'
'devtools: for Arch Pkgs support in -G/--getpkgbuild operation'
'python-pysocks: for socks5 proxy support'
'python-defusedxml: securely wrap Arch news replies'
)
conflicts=('pikaur')
provides=('pikaur')
@@ -36,13 +42,17 @@ pkgver() {
build() {
cd "${srcdir}/${pkgname}" || exit 2
sed -i -e "s/VERSION.*=.*/VERSION = '${pkgver}'/g" pikaur/config.py
sed -i -e "s/^VERSION.*=.*/VERSION = '${pkgver}'/g" pikaur/config.py
if test -d ./dist ; then
rm -r ./dist
fi
make
/usr/bin/python3 -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}" || exit 2
/usr/bin/python3 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
/usr/bin/python3 -m installer --destdir="$pkgdir" dist/*.whl
for langmo in $(cd ./locale && ls ./*.mo); do
lang=$(sed -e 's/.mo$//' <<< "${langmo}")
install -Dm644 "locale/${langmo}" "$pkgdir/usr/share/locale/${lang}/LC_MESSAGES/pikaur.mo"
@@ -50,5 +60,4 @@ package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 pikaur.1 "$pkgdir/usr/share/man/man1/pikaur.1"
cp -r ./packaging/* "${pkgdir}"
cp -r ./dist/* "${pkgdir}"
}