This commit is contained in:
Luis Manuel 2025-03-06 21:35:27 -05:00
commit 145eb0fd8c
3 changed files with 44 additions and 0 deletions

13
.SRCINFO Normal file
View file

@ -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

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Luis Manuel Rivero <riveroluismanuel9@gmail.com>
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
}

8
static.install Executable file
View file

@ -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
}