Free Pascal package guidelines
This page explains on how to write PKGBUILDs for software built with the Free Pascal Compiler (FPC). Compiling for x86_64 Arch Linux requires the fpc package.
Free Pascal
Package naming
The project name alone is usually sufficient. However, in the case of cross-compiling, the package should be prefixed with fpc32- when targetting i686 Linux from multilib and named in the format of fpc-cpu-system-pkgname when targetting non-Arch Linux systems.
Helpful snippets
Determine FPC's version and the CPU and OS of the units to output:
_unitdir=`fpc -iSP`-`fpc -iSO` _fpcver=`fpc -iV`
Packaging
Please adhere to the following when making an FPC-based package:
- always add fpc to either
makedependsordepends - always put all compiled units (*.a, *.compiled, *.o, *.ppu, *.res, *.rsj) under
/usr/lib/fpc/$_fpcver/units/$arch-linux - add
staticlibstooptionsif installing an import library
Cross compiling
- always add the corresponding cross compiler package mentioned above (
fpc-cpu-system-rtl) todepends - always add
!striptooptionsfor non-Unix-based systems - always put all compiled units (*.a, *.compiled, *.o, *.ppu, *.res, *.rsj) under (or if multilib, )
- always use ( if multilib) as the architecture
- add
staticlibstooptionsif installing an import library
gollark: Yes you do.
gollark: Not *just* factories, you need all the buildings in that list (with scale/density options) and more.
gollark: "Flat" would just be a "home" in a high-density/high-size thing.
gollark: You should probably have size and density things actually.
gollark: Okay, more: barn, farm, greenhouse, shed, museum, arena of some kind, city hall (or other governance building), embassy, post office, granary, bunker, missile launch facility, airport, taxi station, shipyard, and gym.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.