commit 95f856955aae0461076a4e86a1212daed834eb89 Author: Sebastiaan de Schaetzen Date: Wed Apr 23 10:43:45 2025 +0200 Initial commit diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..dcf3847 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build and Push +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-amd64 + 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..fcdfcfc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +pkgname=helloworld +pkgver=1 +pkgrel=1 +pkgdesc="Prints hello world" +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" +} + + diff --git a/helloworld.c b/helloworld.c new file mode 100644 index 0000000..2fc0596 --- /dev/null +++ b/helloworld.c @@ -0,0 +1,5 @@ +#include + +int main() { + puts("Hello, world!"); +}