mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 12:57:13 +08:00
Merge branch 'testing' of gitorious.org:chakra-packages/platform into testing
This commit is contained in:
commit
280b22f8d4
@ -1,5 +1,6 @@
|
|||||||
|
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
|
||||||
pkgname=fpc-src
|
pkgname=fpc-src
|
||||||
pkgver=2.6.0
|
pkgver=2.6.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Sources for the FreePascal compiler (required by the Lazarus IDE)'
|
pkgdesc='Sources for the FreePascal compiler (required by the Lazarus IDE)'
|
||||||
url='http://www.freepascal.org/'
|
url='http://www.freepascal.org/'
|
||||||
@ -7,7 +8,7 @@ license=('GPL')
|
|||||||
arch=('any')
|
arch=('any')
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
|
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
|
||||||
md5sums=('17375e665a4e1311f85812fe2754f609')
|
md5sums=('89c7e60db6280f3d5cc006a4a9ff43a9')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/fpcbuild-$pkgver/fpcsrc
|
cd $srcdir/fpcbuild-$pkgver/fpcsrc
|
||||||
|
20
fpc/PKGBUILD
20
fpc/PKGBUILD
@ -1,6 +1,8 @@
|
|||||||
|
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
|
||||||
pkgname=fpc
|
pkgname=fpc
|
||||||
pkgver=2.6.0
|
pkgver=2.6.2
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
|
_gdbver=7.5.1
|
||||||
pkgdesc="The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library."
|
pkgdesc="The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library."
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.freepascal.org/"
|
url="http://www.freepascal.org/"
|
||||||
@ -9,11 +11,15 @@ backup=("etc/fpc.cfg")
|
|||||||
depends=(ncurses)
|
depends=(ncurses)
|
||||||
makedepends=(fpc)
|
makedepends=(fpc)
|
||||||
options=(zipman)
|
options=(zipman)
|
||||||
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
|
source=("ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz"
|
||||||
md5sums=('17375e665a4e1311f85812fe2754f609')
|
"http://ftp.gnu.org/gnu/gdb/gdb-${_gdbver}.tar.bz2")
|
||||||
|
md5sums=('89c7e60db6280f3d5cc006a4a9ff43a9'
|
||||||
|
'3f48f468b24447cf24820054ff6e85b1')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/fpcbuild-$pkgver
|
cd ${srcdir}/fpcbuild-$pkgver
|
||||||
|
export GDBLIBDIR=${srcdir}/gdb-${_gdbver}/gdb
|
||||||
|
export LIBGDBFILE=$GDBLIBDIR/libgdb.a
|
||||||
pushd fpcsrc/compiler
|
pushd fpcsrc/compiler
|
||||||
fpcmake -Tall
|
fpcmake -Tall
|
||||||
popd
|
popd
|
||||||
@ -31,13 +37,15 @@ package() {
|
|||||||
|
|
||||||
install -Dm0644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.FPC
|
install -Dm0644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.FPC
|
||||||
|
|
||||||
[ "$CARCH" = "i686" ] && ln -s /usr/lib/fpc/${pkgver}/ppc386 ${pkgdir}/usr/bin/
|
|
||||||
[ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${pkgver}/ppcx64 ${pkgdir}/usr/bin/
|
[ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${pkgver}/ppcx64 ${pkgdir}/usr/bin/
|
||||||
|
|
||||||
mkdir -p ${pkgdir}/etc
|
mkdir -p ${pkgdir}/etc
|
||||||
${pkgdir}/usr/lib/fpc/${pkgver}/samplecfg $pkgdir/usr/lib/fpc/${pkgver} ${pkgdir}/etc
|
${pkgdir}/usr/lib/fpc/${pkgver}/samplecfg $pkgdir/usr/lib/fpc/${pkgver} ${pkgdir}/etc
|
||||||
|
|
||||||
|
# use -fPIC by default, this should prevent some bug
|
||||||
|
echo -e "#ifdef cpux86_64\n# for x86_64 use -fPIC by default\n-Cg\n#endif" >> "$pkgdir/etc/fpc.cfg"
|
||||||
|
|
||||||
mv $pkgdir/usr/man $pkgdir/usr/share/
|
mv $pkgdir/usr/man $pkgdir/usr/share/
|
||||||
|
|
||||||
find $pkgdir/etc/ -type f -exec sed -i "s|$pkgdir||g" {} \;
|
find $pkgdir/etc/ -type f -exec sed -i "s|$pkgdir||g" {} \;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user