Compare commits
13 Commits
8bf95171c1
...
master
Author | SHA1 | Date | |
---|---|---|---|
4ec858dc0f | |||
afd3b9dc0b | |||
95e108c0f5 | |||
2a30e8e8ee | |||
8ffff2f1ba | |||
ded2106168 | |||
1a7ec1b896 | |||
578547bd40 | |||
cc88171f6d | |||
b57b1844fd | |||
b41388e851 | |||
a18462f84c | |||
ea3b3f5297 |
32
.gitea/workflows/build-package.yaml
Normal file
32
.gitea/workflows/build-package.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Package builder
|
||||||
|
run-name: ${{ gitea.actor }} is building ${{ gitea.repo }}
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
BuildPackage:
|
||||||
|
runs-on: autobuilder
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- /home/builder/public/spark-extra/import:/import
|
||||||
|
steps:
|
||||||
|
- name: Show job info
|
||||||
|
run: |
|
||||||
|
echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
|
echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Link the workdir into /buildroot # for script compatability with the old builder.
|
||||||
|
run: |
|
||||||
|
ln -vfs ${{ gitea.workspace }} /buildroot
|
||||||
|
- name: Build the package
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
/build -s --noconfirm
|
||||||
|
# - name: Upload artifacts
|
||||||
|
# uses: actions/upload-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: package
|
||||||
|
# path: ./*.pkg.tar.zst
|
||||||
|
- name: Put the packages into the import dir
|
||||||
|
run: cp -v ./*.pkg.tar.zst /import
|
22
PKGBUILD
22
PKGBUILD
@@ -1,40 +1,32 @@
|
|||||||
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
||||||
|
|
||||||
pkgname='loksh'
|
pkgname='loksh'
|
||||||
pkgver='6.7.1'
|
pkgver='7.6'
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A Linux port of OpenBSD's ksh targeting musl"
|
pkgdesc="A Linux port of OpenBSD's ksh targeting musl"
|
||||||
arch=( 'i686' 'x86_64' )
|
arch=( 'i686' 'x86_64' )
|
||||||
url='https://github.com/dimkr/loksh'
|
url='https://github.com/dimkr/loksh'
|
||||||
license=( 'custom' )
|
license=( 'custom' )
|
||||||
source=( "https://github.com/dimkr/loksh/releases/download/$pkgver/src.tar.xz" )
|
makedepends=( 'meson' )
|
||||||
|
source=( "https://github.com/dimkr/loksh/releases/download/$pkgver/loksh-$pkgver.tar.xz" )
|
||||||
#_flag_static=1
|
|
||||||
if (( _flag_static )); then
|
|
||||||
makedepends+=( 'musl' )
|
|
||||||
_makeopts=( 'CC=musl-gcc' 'LDFLAGS=-static' )
|
|
||||||
else
|
|
||||||
depends=( 'libbsd' )
|
|
||||||
_makeopts=( 'LDFLAGS=-lbsd' )
|
|
||||||
fi
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname"
|
cd "$pkgname-$pkgver"
|
||||||
meson --prefix=/ \
|
meson --prefix=/ \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--datadir=/usr/share \
|
--datadir=/usr/share \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--buildtype=plain \
|
--buildtype=plain \
|
||||||
--bindir=/bin \
|
--bindir=/usr/bin \
|
||||||
. output
|
. output
|
||||||
|
|
||||||
ninja -C output
|
ninja -C output
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname"
|
cd "$pkgname-$pkgver"
|
||||||
DESTDIR="$pkgdir" ninja -C output install
|
DESTDIR="$pkgdir" ninja -C output install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha1sums=('fc5f081423fcb922d02e97b733e4b45c8a359eb2')
|
sha1sums=('19c46203f1cc9c7baa8b86f8cb76130011d2a047')
|
||||||
|
Reference in New Issue
Block a user