From d6ef4b091f5facb0fe87ef44ce0c020645c3cdf8 Mon Sep 17 00:00:00 2001 From: Archlinux <> Date: Wed, 23 Apr 2025 10:59:05 +0200 Subject: [PATCH] Initial commit --- .gitea/workflows/build.yml | 26 ++++++++++++++++++++++++++ .gitea/workflows/wake.yml | 13 +++++++++++++ PKGBUILD | 19 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .gitea/workflows/wake.yml create mode 100644 PKGBUILD diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..bee0a13 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build and Push +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-amd64 + container: + image: gitea.seeseepuff.be/archlinux/archlinux:latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build package + run: | + makepkg -s - + + - name: Push to repository + run: | + makepkg --packagelist | while read -r file; do + curl --user ${{ secrets.USERNAME }}:${{ secrets.PASSWORD }} \ + --upload-file $file \ + https://gitea.seeseepuff.be/api/packages/archlinux/arch/personal + done diff --git a/.gitea/workflows/wake.yml b/.gitea/workflows/wake.yml new file mode 100644 index 0000000..b054939 --- /dev/null +++ b/.gitea/workflows/wake.yml @@ -0,0 +1,13 @@ +name: Wake Runner +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Wakeup Runner + run: | + curl https://idlesleep.wolproxy.seeseepuff.be/status \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a103382 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +pkgname=template +pkgver=1 +pkgrel=1 +pkgdesc="Template" +arch=('any') +url="https://gitea.seeseepuff.be/archlinux/helloworld" +license=('GPL') +source=(helloworld.c) +md5sums=('be272e4d8286b99885f0540bc3345d5f') + +build() { + gcc -o helloworld helloworld.c -Wall -Wextra -Werror -pedantic +} + +package() { + install -D helloworld "$pkgdir/usr/bin/helloworld" +} + +