initial commit

This commit is contained in:
Théo Le Calvar 2025-07-27 12:52:43 +02:00
commit fc03ec9bca
3 changed files with 48 additions and 0 deletions

15
.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = cecil-bin
pkgdesc = Static site generator
pkgver = 8.51.3
pkgrel = 1
url = https://cecil.app/
arch = any
license = mit
depends = php>=8.1
depends = php-gd
options = !strip
options = staticlibs
source = cecil-8.51.3.phar::https://cecil.app/download/8.51.3/cecil.phar
sha256sums = 3705f9b5f25cf4f6acd971c3c665fbb15b6044132d354bf2ccb3b7614f59728c
pkgname = cecil-bin

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
cecil*
src/
pkg/

30
PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainers: Théo Le Calvar <tlc@kher.nl>
pkgname=cecil-bin
pkgver=8.51.3
pkgrel=1
pkgdesc="Static site generator"
url="https://cecil.app/"
arch=(any)
license=('mit')
depends=('php>=8.1' 'php-gd')
options=('!strip' 'staticlibs')
_pkgsrc_url="https://cecil.app/download/${pkgver}/cecil.phar"
_pkgsrc_file="cecil-${pkgver}.phar"
DLAGENTS=("https::/usr/bin/curl \
-o %o \
-H Referer:\ %u \
${_pkgsrc_url}"
)
source=("${_pkgsrc_file}"::"${_pkgsrc_url}")
sha256sums=('3705f9b5f25cf4f6acd971c3c665fbb15b6044132d354bf2ccb3b7614f59728c')
package() {
mkdir -p "${pkgdir}/usr/bin/"
cp "${srcdir}/${_pkgsrc_file}" "${pkgdir}/usr/bin/cecil"
chmod 755 "${pkgdir}/usr"
chmod +x "${pkgdir}/usr/bin/cecil"
}