PKGBUILDs/README.md

92 lines
4.7 KiB
Markdown
Raw Normal View History

# PKGBUILDs
2017-08-07 00:17:34 +02:00
Contains PKGBUILD files for creating Arch Linux packages:
2015-08-01 20:54:37 +02:00
2017-08-07 00:17:34 +02:00
* Packages for my own applications and libraries such as [Syncthing Tray](https://github.com/Martchus/syncthingtray),
[Tag Editor](https://github.com/Martchus/tageditor), [Password Manager](https://github.com/Martchus/passwordmanager), ...
* Packages [I maintain in the AUR](https://aur.archlinux.org/packages/?O=0&SeB=M&K=Martchus&outdated=&SB=v&SO=d&PP=50&do_Search=Go):
2018-12-08 22:28:31 +01:00
* misc packages, eg. Subtitle Composer, openelec-dvb-firmware, Jangouts
* mingw-w64 packages which allow to build for Windows under Arch Linux, eg. FreeType 2 and Qt 5
* android packages which allow to build for Android under Arch Linux, eg. iconv, Boost, OpenSSL, CppUnit, Qt 5 and Kirigami
* apple-darwin packages which allow to build for MaxOS X under Arch Linux, eg. osxcross and Qt 5 (still experimental)
2017-08-07 00:17:34 +02:00
* Other packages imported from the AUR to build with slight modifications
So if you like to improve one of my AUR packages, just create a PR here.
## Binary repository
I also provide a [binary repository](https://martchus.no-ip.biz/repo/arch/ownstuff/os) containing the packages found
in this repository and a lot of packages found in the AUR:
```
[ownstuff-testing]
SigLevel = Optional TrustAll
Server = https://martchus.no-ip.biz/repo/arch/$repo/os/$arch
2019-05-29 12:20:48 +02:00
Server = https://ftp.f3l.de/~martchus/$repo/os/$arch
[ownstuff]
SigLevel = Optional TrustAll
Server = https://martchus.no-ip.biz/repo/arch/$repo/os/$arch
2019-05-29 12:20:48 +02:00
Server = https://ftp.f3l.de/~martchus/$repo/os/$arch
```
The testing repository is required if you have also enabled the official testing repository. (Packages contained by ownstuff-testing
are linked against packages found in the official testing repository.)
2019-05-29 12:20:48 +02:00
The repository is focusing on x86_64 but some packages are also provided for i686 and aarch64.
Note that I can not assure that required rebuilds always happen fast enough (since the offical developers obviously don't wait for
me before releasing their packages from staging).
## Docker image
Checkout the repository [docker-mingw-qt5](https://github.com/mdimura/docker-mingw-qt5).
2017-08-07 00:17:34 +02:00
## Structure
Each package is in its own subdirectoy:
```
default-pkg-name/variant
```
2017-08-21 01:32:07 +02:00
where `default-pkg-name` is the default package name (eg. `qt5-base`) and `variant` usually one of:
2017-08-07 00:17:34 +02:00
* `default`: the regular package
* `git`/`svn`/`hg`: the development version
2018-12-11 19:54:09 +01:00
* `mingw-w64`: the Windows version (i686/SJLJ and x86_64/SEH)
* `android-{aarch64,armv7a-eabi,x86-64,x86}`: the Android version (currently only aarch64 actively maintained/tested)
* `apple-darwin`: the MacOS X version (still experimental)
2017-08-07 00:17:34 +02:00
The repository does not contain `.SRCINFO` files.
## Contributing to patches
Patches for most packages are managed in a fork of the project under my GitHub profile. For instance,
patches for `mingw-w64-qt5-base` are managed at [github.com/Martchus/qtbase](https://github.com/Martchus/qtbase).
I usually create a dedicated branch for each version, eg. `5.10.1-mingw-w64`. It contains all the patches based on
Qt 5.10.1. When doing fixes later on, I usually preserve the original patches and create a new branch, eg.
`5.10.1-mingw-w64-fixes`.
So in this case it would make sense to contribute directly there. To fix an existing patch, just create a fixup commit.
This (unusual) fixup workflow aims to keep the number of additional changes as small as possbile.
To get the patches into the PKGBUILD files, the script `devel/qt5/update-patches.sh` is used.
### Mass rebasing of Qt patches
This is always done by me. Please don't try to help here because it will only cause conflicts. However, the
workflow is quite simple:
2018-09-19 20:39:07 +02:00
1. Run `devel/qt5/rebase-patches.sh` on all Qt repository forks or just `devel/qt5/rebase-all-patches.sh`
* eg. `rebase-patches.sh 5.11.0 5.10.1 fixes` to create branch `5.11.0-mingw-w64` based on `5.10.1-mingw-w64-fixes`
* after fixing possible conflicts, run `devel/qt5/continue-rebase-patches.sh`
* otherwise, that's it
2019-03-16 16:58:50 +01:00
* all scripts need to run in the Git repository directory of the Qt module except `rebase-all-patches.sh` which needs
the environment variable `QT_GIT_REPOS_DIR` to be set
2. Run `devel/qt5/update-patches.sh` or `devel/qt5/update-all-patches.sh` to update PKGBUILDs
## Supported build and deployment tools for mingw-w64-qt5 packages
Currently, I test with qmake and CMake. With both build systems it is possible to use either the shared or the
static libraries. Please read the comments in the PKGBUILD file itself and the pinned comments in
[the AUR](https://aur.archlinux.org/packages/mingw-w64-qt5-base) for futher information.
There are also pkgconfig files, but those aren't really tested.
qbs and windeployqt currently don't work very well (see issues). Using mxedeployqt might be an alternative for
windeployqt.