summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xaur.sh39
-rw-r--r--opcut/PKGBUILD6
-rw-r--r--python-hat-aio/PKGBUILD2
-rw-r--r--python-hat-doit/PKGBUILD6
-rw-r--r--python-hat-json/PKGBUILD2
-rw-r--r--python-hat-util/PKGBUILD2
7 files changed, 54 insertions, 4 deletions
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 <bozo@kopic.xyz>
+
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 <bozo@kopic.xyz>
+
_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 <bozo@kopic.xyz>
+
_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 <bozo@kopic.xyz>
+
_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 <bozo@kopic.xyz>
+
_name=hat-util
pkgname=python-$_name
pkgver=0.6.7