diff options
author | Erich Eckner <git@eckner.net> | 2021-04-20 13:32:02 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-20 13:32:33 +0200 |
commit | 36447b607ef0d12dba6804fb07ce83544a63c900 (patch) | |
tree | 27706e984c53c8bb26eda7acaa80ba9592ae6027 | |
parent | df90f01b2fef1e637758c29dd560ade9e19f7e33 (diff) | |
download | archlinuxewe-36447b607ef0d12dba6804fb07ce83544a63c900.tar.xz |
fpc-docs-svn: als separates Paket neu
-rw-r--r-- | fpc-docs-svn/.gitignore | 1 | ||||
-rw-r--r-- | fpc-docs-svn/PKGBUILD | 46 |
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 +} |