summaryrefslogtreecommitdiff
path: root/fpc-docs-svn
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-20 13:32:02 +0200
committerErich Eckner <git@eckner.net>2021-04-20 13:32:33 +0200
commit36447b607ef0d12dba6804fb07ce83544a63c900 (patch)
tree27706e984c53c8bb26eda7acaa80ba9592ae6027 /fpc-docs-svn
parentdf90f01b2fef1e637758c29dd560ade9e19f7e33 (diff)
downloadarchlinuxewe-36447b607ef0d12dba6804fb07ce83544a63c900.tar.xz
fpc-docs-svn: als separates Paket neu
Diffstat (limited to 'fpc-docs-svn')
-rw-r--r--fpc-docs-svn/.gitignore1
-rw-r--r--fpc-docs-svn/PKGBUILD46
2 files changed, 47 insertions, 0 deletions
diff --git a/fpc-docs-svn/.gitignore b/fpc-docs-svn/.gitignore
new file mode 100644
index 000000000..2336bf145
--- /dev/null
+++ b/fpc-docs-svn/.gitignore
@@ -0,0 +1 @@
+fpcdocs
diff --git a/fpc-docs-svn/PKGBUILD b/fpc-docs-svn/PKGBUILD
new file mode 100644
index 000000000..04c42775b
--- /dev/null
+++ b/fpc-docs-svn/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: L <alaviss 0 at gmail dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
+# Contributor: Jan Willemson <janwil@hot.ee>
+# Contributor: Hugo Ideler <hugoideler@dse.nl>
+# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Original PKGBUILD: Andre Naumann <anaumann@SPARCed.org>
+# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
+
+pkgname='fpc-docs-svn'
+pkgver=3.3.1.r1852
+_pkgver="${pkgver%.r*}"
+_revision="${pkgver##*.r}"
+pkgrel=1
+arch=('any')
+url='http://www.freepascal.org/'
+license=('GPL' 'LGPL' 'custom')
+pkgdesc='Documentation for the Free Pascal Compiler'
+options=('!strip')
+makedepends=('subversion'
+ 'texlive-core' 'texlive-htmlxml'
+ 'texlive-latexextra' 'ghostscript' 'fpc-src-svn')
+source=('fpcdocs::svn+http://svn.freepascal.org/svn/fpcdocs/trunk#revision='"${_revision}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}"/fpcdocs
+ _src_ver=$(pacman -Q fpc-src-svn)
+ _src_ver="${_src_ver##* }"
+ _src_ver="${_src_ver%.r*}"
+ printf '%s.r%s' \
+ "${_src_ver}" \
+ $(svnversion | tr -d [A-z])
+}
+
+build() {
+ cd "${srcdir}"/fpcdocs
+ cp -r /usr/lib/fpc/src ../fpcsrc
+ make -j1 FPCSRCDIR="${srcdir}"/fpcsrc html
+}
+
+package() {
+ cd "${srcdir}"/fpcdocs
+ make PREFIX="${pkgdir}"/usr htmlinstall
+}