Move OS packaging directories under os
This commit is contained in:
parent
2da5312982
commit
79e4bcdd68
26 changed files with 51 additions and 41 deletions
34
os/arch/PKGBUILD
Normal file
34
os/arch/PKGBUILD
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Local source snapshot; refresh version and checksums with `make pkgsums`.
|
||||
pkgname=murx
|
||||
pkgver=1.0.3
|
||||
pkgrel=1
|
||||
pkgdesc='Small persistent terminal multiplexer'
|
||||
arch=('x86_64' 'aarch64')
|
||||
url='https://codeberg.org/armin/murx'
|
||||
license=('Apache-2.0')
|
||||
depends=('glibc')
|
||||
source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS')
|
||||
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
||||
'78a9c19c212e8038422e1bb4bb96d9b25eb19ad1359489cd32edf9e1a76638b2'
|
||||
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
||||
'1a9c479723f74cdc3a2af6cf7a4ad52388681b11a5ba3f4cfb73d28af631e036'
|
||||
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
||||
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
make CFLAGS="$CFLAGS -std=c99 -Wall -Wextra"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"
|
||||
./murx --help >/dev/null
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
install -Dm644 MURX-README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
24
os/arch/README.md
Normal file
24
os/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 `os/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 os/arch
|
||||
updpkgsums
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
The recipe supports x86_64 and aarch64.
|
||||
Loading…
Add table
Add a link
Reference in a new issue