Document package builds for each supported OS
This commit is contained in:
parent
9e4d8ea3a2
commit
2da5312982
11 changed files with 124 additions and 86 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -6,8 +6,10 @@ src/
|
||||||
# Packages
|
# Packages
|
||||||
/alpine/*
|
/alpine/*
|
||||||
!/alpine/APKBUILD
|
!/alpine/APKBUILD
|
||||||
|
!/alpine/README.md
|
||||||
/arch/*
|
/arch/*
|
||||||
!/arch/PKGBUILD
|
!/arch/PKGBUILD
|
||||||
|
!/arch/README.md
|
||||||
*.apk
|
*.apk
|
||||||
*.xz
|
*.xz
|
||||||
|
|
||||||
|
|
|
||||||
5
Makefile
5
Makefile
|
|
@ -33,11 +33,14 @@ pkgclean:
|
||||||
|
|
||||||
pkgsources:
|
pkgsources:
|
||||||
@for dir in alpine arch; do \
|
@for dir in alpine arch; do \
|
||||||
for source in murx.c Makefile murx.1 README.md LICENSE AUTHORS; do \
|
for source in murx.c Makefile murx.1 LICENSE AUTHORS; do \
|
||||||
if [ ! -e "$$dir/$$source" ] && [ ! -L "$$dir/$$source" ]; then \
|
if [ ! -e "$$dir/$$source" ] && [ ! -L "$$dir/$$source" ]; then \
|
||||||
ln -s "../$$source" "$$dir/$$source" || exit 1; \
|
ln -s "../$$source" "$$dir/$$source" || exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
|
if [ ! -e "$$dir/MURX-README.md" ] && [ ! -L "$$dir/MURX-README.md" ]; then \
|
||||||
|
ln -s ../README.md "$$dir/MURX-README.md" || exit 1; \
|
||||||
|
fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
pkgalpine: pkgclean pkgsources
|
pkgalpine: pkgclean pkgsources
|
||||||
|
|
|
||||||
86
README.md
86
README.md
|
|
@ -445,83 +445,17 @@ that otherwise collapses pane grids to 1x1.
|
||||||
|
|
||||||
## Packages
|
## Packages
|
||||||
|
|
||||||
The [Alpine recipe](alpine/APKBUILD) and [Arch recipe](arch/PKGBUILD)
|
- [Alpine Linux](alpine/README.md)
|
||||||
build from the local checkout using symlinks to the source files. The package
|
- [Arch Linux](arch/README.md)
|
||||||
version comes from `MURX_VERSION` in `murx.c`. Adjust the package release fields
|
- [Debian](debian/README.md)
|
||||||
separately as needed. Both recipes
|
- [Gentoo](gentoo/README.md)
|
||||||
build with the default C compiler and pass distro `CFLAGS` to `make`. The
|
- [FreeBSD](freebsd/README.md)
|
||||||
packages install under `/usr`, including the manual, README, AUTHORS and
|
- [OpenBSD](openbsd/README.md)
|
||||||
license.
|
|
||||||
|
|
||||||
On Alpine, install `alpine-sdk`, configure your abuild signing key with
|
The Alpine and Arch recipes build from the local checkout. After changing
|
||||||
`abuild-keygen -a -i`, and run as a regular user with abuild configured:
|
packaged source files, run `make pkgsums` to sync their versions with
|
||||||
|
`MURX_VERSION` in `murx.c` and refresh their checksums. This target requires
|
||||||
```sh
|
`abuild` and `updpkgsums` (from `pacman-contrib`).
|
||||||
make pkgalpine
|
|
||||||
```
|
|
||||||
|
|
||||||
Install the resulting `murx` package and its `murx-doc` subpackage for the
|
|
||||||
manual. abuild writes packages beneath its configured repository destination
|
|
||||||
(normally `~/packages`); use `apk add /path/to/package.apk` for each signed
|
|
||||||
package after trusting your local signing key.
|
|
||||||
|
|
||||||
On Arch, install `base-devel` and run as a regular user:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
make pkgsources
|
|
||||||
cd arch
|
|
||||||
makepkg -si
|
|
||||||
```
|
|
||||||
|
|
||||||
This builds the package and installs it through pacman. To build from the
|
|
||||||
repository root, run `make pkgarch`. The recipe lists
|
|
||||||
`x86_64` and `aarch64`; builds run on the current architecture.
|
|
||||||
|
|
||||||
For Gentoo, copy the [`app-misc/murx` package directory](gentoo/app-misc/murx)
|
|
||||||
into a configured local Portage overlay. The ebuild fetches the tagged release
|
|
||||||
archive and includes a Manifest with its checksums. It is keyworded `~amd64`;
|
|
||||||
accept that keyword for `app-misc/murx` if your system uses stable keywords.
|
|
||||||
Then install it with:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
emerge --ask app-misc/murx
|
|
||||||
```
|
|
||||||
|
|
||||||
For a new Gentoo release, copy the ebuild to the new versioned filename and
|
|
||||||
run `ebuild murx-VERSION.ebuild manifest` after publishing the matching tag.
|
|
||||||
|
|
||||||
After changing a packaged source file, run `make pkgsums` to sync both package
|
|
||||||
versions and refresh both sets of checksums. This target requires `abuild`
|
|
||||||
and `updpkgsums` (from `pacman-contrib`). Neither recipe
|
|
||||||
requires a test suite; its check step runs `murx --help` as a smoke check.
|
|
||||||
|
|
||||||
### Debian
|
|
||||||
|
|
||||||
The [Debian packaging](debian/) builds from the local checkout. Install
|
|
||||||
`build-essential` and `debhelper`, then run:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
dpkg-buildpackage -b -us -uc
|
|
||||||
```
|
|
||||||
|
|
||||||
The resulting `murx_*.deb` is written to the parent directory. Install it
|
|
||||||
with `apt install ../murx_1.0.3-1_$(dpkg --print-architecture).deb`.
|
|
||||||
|
|
||||||
### FreeBSD
|
|
||||||
|
|
||||||
Copy the [`sysutils/murx` port](freebsd/sysutils/murx/) into a FreeBSD Ports
|
|
||||||
tree. From the port directory, run `make package` to fetch the tagged source,
|
|
||||||
verify its checksum, and build a package. Install the resulting package with
|
|
||||||
`pkg add`. To update the port for a new release, change `DISTVERSION` and run
|
|
||||||
`make makesum` after publishing the matching tag.
|
|
||||||
|
|
||||||
### OpenBSD
|
|
||||||
|
|
||||||
Copy the [`sysutils/murx` port](openbsd/sysutils/murx/) into an OpenBSD ports
|
|
||||||
tree. From the port directory, run `make package` to fetch and verify the
|
|
||||||
tagged source and build a package. Run `make install` to install it through
|
|
||||||
the ports tree. For a new release, update `DISTNAME` and run `make makesum`
|
|
||||||
after publishing the matching tag.
|
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ url="https://codeberg.org/armin/murx"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="murx.c Makefile murx.1 README.md LICENSE AUTHORS"
|
source="murx.c Makefile murx.1 MURX-README.md LICENSE AUTHORS"
|
||||||
builddir="$srcdir"
|
builddir="$srcdir"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
@ -20,16 +20,16 @@ check() {
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
install -Dm644 MURX-README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||||
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
||||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
|
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
|
||||||
10a353b8447ff969fa55c5445b61604471c5e7ca1e8e632e05c0f77cb01d876b9c0a260ddb1e5a9a6d880a47f725c22a1279ea8a8e38d3b08c384ded592dc837 Makefile
|
090b3755edac7de08fe7951f05808cb3f86f845a0a968b382c01f5c634a3ba82dbb8cd0a78d68409a2d3062608a668d40287fa7dd37953319abb31c6fdb812e1 Makefile
|
||||||
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
|
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
|
||||||
6ef36f741587cd78f354e6cbe76f674a75964dc131ee218fabe39fa6c96cda80ce0d292030e76d871c4c4811e00b5074847364a1fd2b3bbde60831dae677fa80 README.md
|
ae46b4ffcca738c9692746c678cd969b4de709e5a5a5306214242eb17c15e04b827fcb692d099387a27cbdffb71b9d2853d4ddffeb01257c22a445140dde610a MURX-README.md
|
||||||
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
|
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
|
||||||
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
|
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
|
||||||
"
|
"
|
||||||
|
|
|
||||||
18
alpine/README.md
Normal file
18
alpine/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Build the Alpine packages
|
||||||
|
|
||||||
|
Install `alpine-sdk` and configure abuild for your regular user. Generate and
|
||||||
|
install a signing key with `abuild-keygen -a -i` if you need one.
|
||||||
|
|
||||||
|
From the murx checkout root, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make pkgalpine
|
||||||
|
```
|
||||||
|
|
||||||
|
The target prepares local sources for [APKBUILD](APKBUILD), refreshes their
|
||||||
|
checksums, and invokes `abuild -r`. The packages are written to abuild's
|
||||||
|
configured repository destination, typically `~/packages`.
|
||||||
|
|
||||||
|
Install the resulting `murx` and `murx-doc` APKs with `apk add` and their
|
||||||
|
respective file paths. Trust your local signing key first. The `murx-doc`
|
||||||
|
subpackage contains the manual.
|
||||||
|
|
@ -7,11 +7,11 @@ arch=('x86_64' 'aarch64')
|
||||||
url='https://codeberg.org/armin/murx'
|
url='https://codeberg.org/armin/murx'
|
||||||
license=('Apache-2.0')
|
license=('Apache-2.0')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
source=('murx.c' 'Makefile' 'murx.1' 'README.md' 'LICENSE' 'AUTHORS')
|
source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS')
|
||||||
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
||||||
'ee889dd531e7a3632032815a21ab26012a6ea882b50b56f86230bb3b9d9e5cad'
|
'7fee28fdd2016230d02cc7fee8a4cc759083d8dbe3d82b42a7353f883dd1774c'
|
||||||
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
||||||
'dc82161e37e6800fa14561bc261e7cc3b0ea2165de42601085353a92a6153f08'
|
'e2056cacb32df2fd2e49990d0db5900e777128792a55f382565b5b50da160b94'
|
||||||
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
||||||
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@ check() {
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
install -Dm644 MURX-README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||||
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
||||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
arch/README.md
Normal file
24
arch/README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# Build the Arch Linux package
|
||||||
|
|
||||||
|
Install `base-devel` and `pacman-contrib`. As a regular user, run this from
|
||||||
|
the murx checkout root:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make pkgarch
|
||||||
|
```
|
||||||
|
|
||||||
|
The target prepares local sources for [PKGBUILD](PKGBUILD), updates their
|
||||||
|
checksums, and runs `makepkg`. The package is written to `arch/` unless you
|
||||||
|
configured a different `PKGDEST`. Install it with `pacman -U` and the package
|
||||||
|
path.
|
||||||
|
|
||||||
|
To build and install in one step, run these commands from the checkout root:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make pkgsources
|
||||||
|
cd arch
|
||||||
|
updpkgsums
|
||||||
|
makepkg -si
|
||||||
|
```
|
||||||
|
|
||||||
|
The recipe supports x86_64 and aarch64.
|
||||||
13
debian/README.md
vendored
Normal file
13
debian/README.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Build the Debian package
|
||||||
|
|
||||||
|
Install `build-essential`, `dpkg-dev`, and `debhelper` with compatibility
|
||||||
|
level 13 available. From the murx checkout root, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
dpkg-buildpackage -b -us -uc
|
||||||
|
```
|
||||||
|
|
||||||
|
This builds an unsigned binary package from the checkout. Find its version
|
||||||
|
in the [Debian changelog](changelog). The `.deb` is written to the checkout's
|
||||||
|
parent directory. Install the package with `apt install` and the path to the
|
||||||
|
`.deb`.
|
||||||
14
freebsd/README.md
Normal file
14
freebsd/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Build the FreeBSD package
|
||||||
|
|
||||||
|
Copy the [`sysutils/murx` port](sysutils/murx/) into the `sysutils` category
|
||||||
|
of a FreeBSD ports tree. From the copied port directory, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make package
|
||||||
|
```
|
||||||
|
|
||||||
|
The ports framework fetches the tagged source archive, verifies its checksum,
|
||||||
|
and builds the package. Install the resulting package with `pkg add` and the package path.
|
||||||
|
|
||||||
|
To package a new release, update `DISTVERSION` in the port Makefile and run
|
||||||
|
`make makesum` after publishing the matching tag.
|
||||||
16
gentoo/README.md
Normal file
16
gentoo/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Build the Gentoo package
|
||||||
|
|
||||||
|
Copy the [`app-misc/murx` directory](app-misc/murx/) into a configured local
|
||||||
|
Portage overlay. Keep the ebuild and Manifest together. The ebuild fetches and
|
||||||
|
verifies the tagged release archive and builds it from source.
|
||||||
|
|
||||||
|
On an amd64 system using stable keywords, add `app-misc/murx ~amd64` to
|
||||||
|
`/etc/portage/package.accept_keywords` or a file in that directory. Then run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
emerge --ask app-misc/murx
|
||||||
|
```
|
||||||
|
|
||||||
|
To prepare a new package version, copy the ebuild to a filename with the new
|
||||||
|
version and run `ebuild murx-VERSION.ebuild manifest` from the package
|
||||||
|
directory after publishing the matching tag.
|
||||||
14
openbsd/README.md
Normal file
14
openbsd/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Build the OpenBSD package
|
||||||
|
|
||||||
|
Copy the [`sysutils/murx` port](sysutils/murx/) into the `sysutils` category
|
||||||
|
of a OpenBSD ports tree. From the copied port directory, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make package
|
||||||
|
```
|
||||||
|
|
||||||
|
The ports framework fetches the tagged source archive, verifies its checksum,
|
||||||
|
and builds the package. Run `make install` from the port directory to install it through the ports tree.
|
||||||
|
|
||||||
|
To package a new release, update `DISTNAME` in the port Makefile and run
|
||||||
|
`make makesum` after publishing the matching tag.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue