From 145eb0fd8c75219fdd94cf8c00948162bf3d9388 Mon Sep 17 00:00:00 2001 From: Luis Manuel <32717016+GearFox98@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:35:27 -0500 Subject: [PATCH] Init --- .SRCINFO | 13 +++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ static.install | 8 ++++++++ 3 files changed, 44 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100755 static.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..68157fdd38034 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = static-git + pkgdesc = "A static HTML site generator inspired by React" + pkgver = 1.0 + pkgrel = 2 + epoch = 0 + arch = any + url = https://github.com/GearFox98/static.git + license = MIT + provides = static-init + conflicts = static-init + source= git+https://github.com/GearFox98/static.git#branch=master + +pkgname = static-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..e533d2d4dd3f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Luis Manuel Rivero +pkgname=static-git +pkgver=1.0 +pkgrel=2 +epoch=0 +pkgdesc="A static HTML site generator inspired by React" +arch=('any') +url="https://github.com/GearFox98/static.git" +license=('MIT') +provides=(static-init) +conflicts=(static-init) +install=static.install +source=("git+https://github.com/GearFox98/static.git#branch=master") +sha256sums=('SKIP') + +package(){ + mkdir -p "$pkgdir/opt/" + + cp -r "$srcdir/static" "$pkgdir/opt/static" + sed "s/SKEL = os.path.join(BASE_DIR, 'skel')/SKEL = '\/opt\/static\/skel'/" $pkgdir/opt/static/static-init > $pkgdir/opt/static/static-init.2 + rm $pkgdir/opt/static/static-init + mv $pkgdir/opt/static/static-init.2 $pkgdir/opt/static/static-init +} diff --git a/static.install b/static.install new file mode 100755 index 0000000000000..7f9b769c1ae4c --- /dev/null +++ b/static.install @@ -0,0 +1,8 @@ +post_install() { + chmod 0775 /opt/static/static-init + ln -sf /opt/static/static-init /usr/bin/static-init +} + +post_remove() { + rm /usr/bin/static-init +}