From 5c76c8ab23ba5ca51a4bc85e89c4d7bec6663087 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Thu, 12 Jan 2023 01:00:38 +0100 Subject: . --- .gitignore | 1 + aur.sh | 39 +++++++++++++++++++++++++++++++++++++++ opcut/PKGBUILD | 6 ++++-- python-hat-aio/PKGBUILD | 2 ++ python-hat-doit/PKGBUILD | 6 ++++-- python-hat-json/PKGBUILD | 2 ++ python-hat-util/PKGBUILD | 2 ++ 7 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100755 aur.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ace2f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/aur diff --git a/aur.sh b/aur.sh new file mode 100755 index 0000000..edb70ca --- /dev/null +++ b/aur.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +PACKAGES="opcut + python-hat-aio + python-hat-doit + python-hat-json + python-hat-util" + +cd $(dirname -- "$0") + +mkdir -p aur + +for PACKAGE in $PACKAGES; do + + echo -n "$PACKAGE... " + + if [ -d aur/$PACKAGE ]; then + git -C aur/$PACKAGE pull -q + else + git -C aur clone -q ssh://aur@aur.archlinux.org/$PACKAGE.git + fi + + for SRC in $(find $PACKAGE -type f -a -not -name .gitignore); do + if ! git check-ignore -q $SRC; then + cp $SRC aur/$SRC + fi + done + + (cd aur/$PACKAGE; makepkg --printsrcinfo > .SRCINFO) + + if git -C aur/$PACKAGE diff --quiet; then + echo "OK" + else + echo "CHANGED" + fi + +done diff --git a/opcut/PKGBUILD b/opcut/PKGBUILD index 5aa8a23..a0fcd3b 100644 --- a/opcut/PKGBUILD +++ b/opcut/PKGBUILD @@ -1,10 +1,12 @@ +# Maintainer: Bozo Kopic + pkgname=opcut pkgver=0.4.7 -pkgrel=1 +pkgrel=2 pkgdesc="Cutting stock problem optimizer" url="https://github.com/bozokopic/opcut" license=('GPL3') -arch=('any') +arch=('x86_64' 'armv7l' 'aarch64') depends=('python-aiohttp' 'python-hat-aio' 'python-hat-json' 'python-cairo') makedepends=('python-hat-doit' 'python-installer' 'yarn') source=("https://github.com/bozokopic/opcut/archive/refs/tags/v$pkgver.tar.gz") diff --git a/python-hat-aio/PKGBUILD b/python-hat-aio/PKGBUILD index 25948c5..024b7d1 100644 --- a/python-hat-aio/PKGBUILD +++ b/python-hat-aio/PKGBUILD @@ -1,3 +1,5 @@ +# Maintainer: Bozo Kopic + _name=hat-aio pkgname=python-$_name pkgver=0.7.3 diff --git a/python-hat-doit/PKGBUILD b/python-hat-doit/PKGBUILD index c531a38..df1af93 100644 --- a/python-hat-doit/PKGBUILD +++ b/python-hat-doit/PKGBUILD @@ -1,6 +1,8 @@ +# Maintainer: Bozo Kopic + _name=hat-doit pkgname=python-$_name -pkgver=0.11.9 +pkgver=0.11.10 pkgrel=1 pkgdesc="Hat build utility functions" url="https://github.com/hat-open/hat-doit" @@ -12,7 +14,7 @@ depends=('python-build' 'python-doit' 'flake8' 'python-sphinx-furo' 'python-setuptools' 'python-sphinx' 'python-wheel') makedepends=('python-installer') source=("https://github.com/hat-open/hat-doit/archive/refs/tags/v$pkgver.tar.gz") -sha256sums=('8856d5466f2578a625153dae7a2d24c1ae43712fb1ad4057ad456ae58fe2aaa6') +sha256sums=('1f84bb9c4000cfce20af215632dcc03e7473faba238a70572387bc8b072f7ce2') build() { cd "$srcdir/$_name-$pkgver" diff --git a/python-hat-json/PKGBUILD b/python-hat-json/PKGBUILD index 133b085..40eb5bd 100644 --- a/python-hat-json/PKGBUILD +++ b/python-hat-json/PKGBUILD @@ -1,3 +1,5 @@ +# Maintainer: Bozo Kopic + _name=hat-json pkgname=python-$_name pkgver=0.5.13 diff --git a/python-hat-util/PKGBUILD b/python-hat-util/PKGBUILD index 1301279..939ac44 100644 --- a/python-hat-util/PKGBUILD +++ b/python-hat-util/PKGBUILD @@ -1,3 +1,5 @@ +# Maintainer: Bozo Kopic + _name=hat-util pkgname=python-$_name pkgver=0.6.7 -- cgit v1.2.3-70-g09d2