Skip to content

Instantly share code, notes, and snippets.

@dvtate
Last active March 31, 2016 00:36
Show Gist options
  • Save dvtate/1af1ce0ff26eb393db70 to your computer and use it in GitHub Desktop.
Save dvtate/1af1ce0ff26eb393db70 to your computer and use it in GitHub Desktop.
PKGBUILD: An arch build system (ABS) script for MarisaHttpd. (this file is incomplete and will not build)
pkgbase = marisahttpd-git
pkgdesc = High-effiency dynamic webpage server and runtime for C/C++
pkgver = 0.4.r35.g45274d1
pkgrel = 1
url = https://github.com/AmamiyaRinyuki/MarisaHttpd
arch = any
license = GPL
makedepends = git
makedepends = libmicrohttpd
provides = marisa
provides = libkirisame.so
provides = marisa-logview
source = marisahttpd-git::git+https://github.com/AmamiyaRinyuki/MarisaHttpd
md5sums = SKIP
pkgname = marisahttpd-git
# Developer: Amamiya Shinki <[email protected]>
# Maintainer: Dustin Van Tate Testa <[email protected]>
pkgname=marisahttpd-git
pkgver=0.4.r35.g45274d1 # calls `pkgver()` to replace this number (ver from git)
pkgrel=1
license=('GPL')
pkgdesc="High-effiency dynamic webpage server and runtime for C/C++"
url="https://github.com/AmamiyaRinyuki/MarisaHttpd"
arch=('any')
makedepends=('git' 'libmicrohttpd')
provides=("marisa" "libkirisame.so" "marisa-logview")
source=("$pkgname::git+https://github.com/AmamiyaRinyuki/MarisaHttpd")
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'
}
package() {
cd $pkgname
mkdir $pkgdir/usr/
mkdir $pkgdir/usr/bin/
mkdir $pkgdir/usr/lib/
gcc -shared -fpic -Ofast src/kirisame.c src/libs/*.c -Ilibs -o $pkgdir/lib/libkirisame.so
gcc -Ofast src/marisa.c src/grimoire.c src/magicshop.c srd/kirisame.c -ldl -lm -lpthread -lmicrohttpd -o $pkgdir/usr/bin/marisa
gcc -Ofast src/logview.c -o $pkgdir/usr/bin/marisa-logview
install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}
@dvtate
Copy link
Author

dvtate commented Mar 16, 2016

2016-03-16-142305_1680x1050_scrot

@dvtate
Copy link
Author

dvtate commented Mar 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment