summaryrefslogtreecommitdiff
path: root/pcr/xsp/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-04 21:13:55 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-04 21:13:55 +0100
commit34a14f436e510456d8753b2fe6a314be2bdb0649 (patch)
treec73d8cace63e1ca2b569c175f0a86f0f94a2ed13 /pcr/xsp/PKGBUILD
parent0dd0cca8496e41a58a3e2bb545092ce4642e541a (diff)
downloadabslibre-34a14f436e510456d8753b2fe6a314be2bdb0649.tar.gz
abslibre-34a14f436e510456d8753b2fe6a314be2bdb0649.tar.bz2
abslibre-34a14f436e510456d8753b2fe6a314be2bdb0649.zip
pcr/xsp: moved from libre/xsp; gone from arch and moved to aur
Diffstat (limited to 'pcr/xsp/PKGBUILD')
-rw-r--r--pcr/xsp/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/pcr/xsp/PKGBUILD b/pcr/xsp/PKGBUILD
new file mode 100644
index 000000000..face7e27e
--- /dev/null
+++ b/pcr/xsp/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 308160 2017-10-17 17:36:56Z jelle $
+# Maintainer (AUR): Daniel Isenmann <daniel@archlinux.org>
+# Contributor (AUR): Tobias Kieslich <tobias@justdreams.de>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+# parabola changes and rationale:
+# - rebranded to parabola
+
+pkgname=xsp
+pkgver=4.4
+pkgrel=2.parabola2
+pkgdesc="A simple webserver based on mono - provides ASP.NET support (Parabola rebranded)"
+arch=('i686' 'x86_64' 'armv7h')
+license=('custom')
+url="http://www.go-mono.com"
+depends=('mono' 'sqlite')
+options=(!makeflags)
+install=${pkgname}.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mono/xsp/archive/${pkgver}.tar.gz
+ ${pkgname}.webapp
+ ${pkgname}.service)
+sha256sums=('231d05550311a47b805331326078f156aa673ae542d2edeb14cc5ab8c34eb1a2'
+ 'bcb208c3946ef49ae431a7be50c8effeb61228574b56d36e2c3c1cd9fe04fe02'
+ '4760b3fa782e62890291c7d31e393ee51d18015f91a6fc21b4a928bae4f22f66')
+
+build() {
+ # get rid of that .wapi errors; thanks to brice
+ export MONO_SHARED_DIR=${srcdir}/src/weird
+ mkdir -p "${MONO_SHARED_DIR}"
+ # import pathes
+ # build
+ cd ${srcdir}/${pkgname}-${pkgver}
+ #sed -i 's|/bin/sh|\0\nexport MONO_PATH=${MONO_PATH}:/opt/mono/lib/mono/1.0|' scripts/script.in
+ ./autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+ # tweak the xsp shellscript to grab system dll's
+ for script in scripts/*2; do
+ sed -i 's|/usr/lib/mono/1.0|/usr/lib/mono/2.0|' $script
+ done
+ #destdir related bugfixes
+ sed -i 's|mkdir \$(datadir)|mkdir $(DESTDIR)$(datadir)|' test/2.0/treeview/Makefile
+ sed -i 's|gif \$(datadir)|gif $(DESTDIR)$(datadir)|' test/2.0/treeview/Makefile
+}
+
+package(){
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir}/ install
+ # move test files from share to arch' default html home
+ mkdir -p ${pkgdir}/srv/http/html
+ mv ${pkgdir}/usr/lib/xsp/test ${pkgdir}/srv/http/html/xsp
+ rm -rf ${pkgdir}/usr/share
+ chown -R http:http ${pkgdir}/srv/http/html/${pkgname}
+
+ # install a xsp configuration home
+ install -D -m644 ${srcdir}/${pkgname}.webapp \
+ ${pkgdir}/etc/${pkgname}/${pkgname}.webapp
+ install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+ # install systemd service file
+ install -D -m644 ${srcdir}/${pkgname}.service \
+ ${pkgdir}/usr/lib/systemd/system/xsp.service
+}