Move Arch and Alpine package recipes into subdirectories
This commit is contained in:
parent
33683c8344
commit
3c756ae46b
5 changed files with 39 additions and 23 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -4,6 +4,10 @@
|
||||||
src/
|
src/
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
|
/alpine/*
|
||||||
|
!/alpine/APKBUILD
|
||||||
|
/arch/*
|
||||||
|
!/arch/PKGBUILD
|
||||||
*.apk
|
*.apk
|
||||||
*.xz
|
*.xz
|
||||||
|
|
||||||
|
|
|
||||||
35
Makefile
35
Makefile
|
|
@ -28,29 +28,38 @@ clean:
|
||||||
rm -f murx
|
rm -f murx
|
||||||
|
|
||||||
pkgclean:
|
pkgclean:
|
||||||
rm -rf *.apk
|
rm -f *.apk alpine/*.apk
|
||||||
rm -rf *.xz
|
rm -f *.xz arch/*.pkg.tar.*
|
||||||
|
|
||||||
pkgalpine: pkgclean
|
pkgsources:
|
||||||
abuild checksum
|
@for dir in alpine arch; do \
|
||||||
abuild -r
|
for source in murx.c Makefile murx.1 README.md LICENSE AUTHORS; do \
|
||||||
|
if [ ! -e "$$dir/$$source" ] && [ ! -L "$$dir/$$source" ]; then \
|
||||||
|
ln -s "../$$source" "$$dir/$$source" || exit 1; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
done
|
||||||
|
|
||||||
pkgarch: pkgclean
|
pkgalpine: pkgclean pkgsources
|
||||||
updpkgsums
|
cd alpine && abuild checksum
|
||||||
makepkg
|
cd alpine && abuild -r
|
||||||
|
|
||||||
pkgsums:
|
pkgarch: pkgclean pkgsources
|
||||||
|
cd arch && updpkgsums
|
||||||
|
cd arch && makepkg
|
||||||
|
|
||||||
|
pkgsums: pkgsources
|
||||||
@version=$$(sed -n 's/^#define MURX_VERSION "\([^"]*\)"$$/\1/p' murx.c); \
|
@version=$$(sed -n 's/^#define MURX_VERSION "\([^"]*\)"$$/\1/p' murx.c); \
|
||||||
if [ -z "$$version" ]; then \
|
if [ -z "$$version" ]; then \
|
||||||
echo "Could not read MURX_VERSION from murx.c" >&2; exit 1; \
|
echo "Could not read MURX_VERSION from murx.c" >&2; exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
tmp=$$(mktemp .pkgsums.XXXXXX) || exit 1; \
|
tmp=$$(mktemp .pkgsums.XXXXXX) || exit 1; \
|
||||||
trap 'rm -f "$$tmp"' 0; \
|
trap 'rm -f "$$tmp"' 0; \
|
||||||
for recipe in APKBUILD PKGBUILD; do \
|
for recipe in alpine/APKBUILD arch/PKGBUILD; do \
|
||||||
sed "s/^pkgver=.*/pkgver=$$version/" "$$recipe" > "$$tmp" && \
|
sed "s/^pkgver=.*/pkgver=$$version/" "$$recipe" > "$$tmp" && \
|
||||||
cat "$$tmp" > "$$recipe" || exit 1; \
|
cat "$$tmp" > "$$recipe" || exit 1; \
|
||||||
done
|
done
|
||||||
abuild checksum
|
cd alpine && abuild checksum
|
||||||
updpkgsums
|
cd arch && updpkgsums
|
||||||
|
|
||||||
.PHONY: all install uninstall clean pkgclean pkgalpine pkgarch pkgsums
|
.PHONY: all install uninstall clean pkgclean pkgsources pkgalpine pkgarch pkgsums
|
||||||
|
|
|
||||||
15
README.md
15
README.md
|
|
@ -445,10 +445,10 @@ that otherwise collapses pane grids to 1x1.
|
||||||
|
|
||||||
## Linux packages
|
## Linux packages
|
||||||
|
|
||||||
The root directory includes [APKBUILD](APKBUILD) for Alpine Linux and
|
The [Alpine recipe](alpine/APKBUILD) and [Arch recipe](arch/PKGBUILD)
|
||||||
[PKGBUILD](PKGBUILD) for Arch Linux. Both build the local source files rather
|
build from the local checkout using symlinks to the source files. The package
|
||||||
than downloading a release. The package version comes from `MURX_VERSION` in
|
version comes from `MURX_VERSION` in `murx.c`. Adjust the package release fields
|
||||||
`murx.c`; adjust the package release fields separately as needed. Both recipes
|
separately as needed. Both recipes
|
||||||
build with the default C compiler and pass distro `CFLAGS` to `make`. The
|
build with the default C compiler and pass distro `CFLAGS` to `make`. The
|
||||||
packages install under `/usr`, including the manual, README, AUTHORS and
|
packages install under `/usr`, including the manual, README, AUTHORS and
|
||||||
license.
|
license.
|
||||||
|
|
@ -457,7 +457,7 @@ On Alpine, install `alpine-sdk`, configure your abuild signing key with
|
||||||
`abuild-keygen -a -i`, and run as a regular user with abuild configured:
|
`abuild-keygen -a -i`, and run as a regular user with abuild configured:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
abuild -r
|
make pkgalpine
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the resulting `murx` package and its `murx-doc` subpackage for the
|
Install the resulting `murx` package and its `murx-doc` subpackage for the
|
||||||
|
|
@ -468,10 +468,13 @@ package after trusting your local signing key.
|
||||||
On Arch, install `base-devel` and run as a regular user:
|
On Arch, install `base-devel` and run as a regular user:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
make pkgsources
|
||||||
|
cd arch
|
||||||
makepkg -si
|
makepkg -si
|
||||||
```
|
```
|
||||||
|
|
||||||
This builds the package and installs it through pacman. The recipe lists
|
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.
|
`x86_64` and `aarch64`; builds run on the current architecture.
|
||||||
|
|
||||||
For Gentoo, copy the [`app-misc/murx` package directory](gentoo/app-misc/murx)
|
For Gentoo, copy the [`app-misc/murx` package directory](gentoo/app-misc/murx)
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@ package() {
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
|
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
|
||||||
ebce5c1268253d4dbf1cc1c7d6200c3bad97cba6361d8ff3c5d4563b670565a1a70d83d7bcb2dc0b1ca9fad9ca49d2ff8366b21ac73fb26cb7b46730d0acc425 Makefile
|
10a353b8447ff969fa55c5445b61604471c5e7ca1e8e632e05c0f77cb01d876b9c0a260ddb1e5a9a6d880a47f725c22a1279ea8a8e38d3b08c384ded592dc837 Makefile
|
||||||
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
|
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
|
||||||
8353d847c8d49c3f74956f17612528c1d20b20e7f981f352a2ca601ce93222c99ef3e0c034e14648df1a466376148cb1f06d3078f3a98bc1a9a00f0e3aa71c02 README.md
|
7284e0a57c11cd7b6cbc1569b95974bc87a81018d6184b6decc2b9c2b6d005cca1a407a48141687d2f2bba83c72f57e159ccd9d0c8be00e2846437c1b49a0d39 README.md
|
||||||
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
|
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
|
||||||
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
|
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
|
||||||
"
|
"
|
||||||
|
|
@ -9,9 +9,9 @@ license=('Apache-2.0')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
source=('murx.c' 'Makefile' 'murx.1' 'README.md' 'LICENSE' 'AUTHORS')
|
source=('murx.c' 'Makefile' 'murx.1' 'README.md' 'LICENSE' 'AUTHORS')
|
||||||
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
||||||
'4301fe8afe6a6e7cc665d8820ec43047f6af6f3b394a3a3a4f6e52dcf32fdec2'
|
'ee889dd531e7a3632032815a21ab26012a6ea882b50b56f86230bb3b9d9e5cad'
|
||||||
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
||||||
'a9231e00964b19553032f531832fa532f231dcedf3d6c7c0e52a1e2761bfd6c7'
|
'0f28defaaa7b03fd24dc87aa53a1f3c1a9ea86ec27c7e3c688248220285879b1'
|
||||||
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
||||||
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue