mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Init
This commit is contained in:
commit
145eb0fd8c
3 changed files with 44 additions and 0 deletions
13
.SRCINFO
Normal file
13
.SRCINFO
Normal 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
23
PKGBUILD
Normal 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
8
static.install
Executable 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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue