added PKGBUILD
Prepare Build and Testing executable binary / Archlinux-package (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 25s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Archlinux-package (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 25s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
This commit is contained in:
1 parent
832535f52e
commit
f001c5aa18
3 files changed
+48
-3
No files matched your search
@@ -49,4 +49,24 @@ jobs:
|
|||||||
meson setup build && \
|
meson setup build && \
|
||||||
ninja -C build
|
ninja -C build
|
||||||
- name: Testing to run binary builded with meson
|
- name: Testing to run binary builded with meson
|
||||||
run: ./build/tte --version
|
run: ./build/tte --version
|
||||||
|
|
||||||
|
Archlinux-package:
|
||||||
|
runs-on: archlinux-aarch64
|
||||||
|
steps:
|
||||||
|
- name: Download PKGBUILD file
|
||||||
|
run: |
|
||||||
|
mkdir workspace && \
|
||||||
|
cd workspace && \
|
||||||
|
curl \
|
||||||
|
https://gitea.home.com:3000/TolaMironcenko/tte/raw/branch/main/PKGBUILD \
|
||||||
|
-o PKGBUILD && \
|
||||||
|
sed "s/arch=('x86_64')/arch=('aarch64')/" -i PKGBUILD
|
||||||
|
- name: Build package
|
||||||
|
run: cd workspace && makepkg -f
|
||||||
|
- name: Push package
|
||||||
|
run: |
|
||||||
|
cd workspace && \
|
||||||
|
curl --user TolaMironcenko:d57cf51c49b425b42148e5a56882f8330bde011c \
|
||||||
|
--upload-file ./tte-git-1.0-1-aarch64.pkg.tar.xz \
|
||||||
|
https://gitea.home.com:3000/api/packages/TolaMironcenko/arch/home
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
DESTDIR=/
|
||||||
|
|
||||||
tte: tte.c
|
tte: tte.c
|
||||||
$(CC) tte.c -o tte -std=c99
|
$(CC) tte.c -o tte -std=c99
|
||||||
|
|
||||||
@@ -5,8 +7,7 @@ debug: tte.c
|
|||||||
$(CC) tte.c -o tte -Wall -Wextra -pedantic -std=c99 -g
|
$(CC) tte.c -o tte -Wall -Wextra -pedantic -std=c99 -g
|
||||||
|
|
||||||
install: tte
|
install: tte
|
||||||
sudo cp tte /usr/bin/
|
sudo cp tte $(DESTDIR)/usr/bin/
|
||||||
sudo chmod +x /usr/bin/
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
sudo rm -v /usr/bin/tte
|
sudo rm -v /usr/bin/tte
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Maintainer: Tola Mironcenko <mironcenkotola@gmail.com>
|
||||||
|
pkgname=tte-git
|
||||||
|
_pkgname="${pkgname%-git}"
|
||||||
|
_reponame=tte
|
||||||
|
pkgver=0.1.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Password generator"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://gitea.home.com:3000/TolaMironcenko/tte"
|
||||||
|
conflicts=("$_pkgname")
|
||||||
|
license=('GPL')
|
||||||
|
source=("git+$url.git")
|
||||||
|
cksums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $_reponame
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $_reponame
|
||||||
|
mkdir -p $pkgdir/usr/bin
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
Reference in new issue
Block a user