diff options
author | Erich Eckner <git@eckner.net> | 2021-04-20 12:00:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-20 12:00:13 +0200 |
commit | f521d7b71513e868769e8395343819d91d77a086 (patch) | |
tree | ab15ee91ac00370c07e30bdbba71b715a19bdc23 /fpc-src-svn/PKGBUILD | |
parent | fe1b7bb2ebd8ebba149fb3ebe7fccb91c1fd4338 (diff) | |
download | archlinuxewe-f521d7b71513e868769e8395343819d91d77a086.tar.xz |
make fpc-src-svn a separate package
Diffstat (limited to 'fpc-src-svn/PKGBUILD')
-rw-r--r-- | fpc-src-svn/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/fpc-src-svn/PKGBUILD b/fpc-src-svn/PKGBUILD new file mode 100644 index 000000000..4db37322a --- /dev/null +++ b/fpc-src-svn/PKGBUILD @@ -0,0 +1,47 @@ +# 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-src-svn' +pkgver=3.3.1.r49238 +_pkgver="${pkgver%.r*}" +_revision="${pkgver##*.r}" +pkgrel=1 +arch=('any') +url='http://www.freepascal.org/' +license=('GPL' 'LGPL' 'custom') +depends=() +pkgdesc='Sources for the Free Pascal Compiler (required by the Lazarus IDE)' +options=('!strip') +conflicts=('fpc-src') +provides=("fpc-src=${pkgver}") + +source=('38680_refined_htypechk.pas-2.patch' +'fpcsrc::svn+http://svn.freepascal.org/svn/fpc/trunk#revision='"${_revision}") +sha512sums=('583e26eca23d4fde9b6dc163c8e97cd5f271ca98e38560e0da0b79d30652a876f5c66e4b7c2ea32b429f34855b1cdc48987f4fd7bb7cf63eeafcbb6a08ee9693' + 'SKIP') + +pkgver() { + cd "${srcdir}"/fpcsrc + printf '%s.r%s' \ + $(grep -m 1 'version' Makefile.fpc | cut -d '=' -f 2) \ + $(svnversion | tr -d [A-z]) +} + +prepare() { + cd "${srcdir}"/fpcsrc + patch -p0 -i "${srcdir}/38680_refined_htypechk.pas-2.patch" +} + +package() { + + install -dm755 "${pkgdir}"/usr/lib/fpc/src + + mv "${srcdir}"/fpcsrc/* "${pkgdir}"/usr/lib/fpc/src/ +} |