Skip to content

Commit f08466e

Browse files
committed
First
1 parent 1b2740c commit f08466e

3 files changed

Lines changed: 44 additions & 30 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# dz6 - BigLinux Packaging
2+
3+
This repository is used exclusively to automate the build and packaging process for the **dz6** program through the BigLinux CI/CD system.
4+
5+
⚠️ **Attention:** This is not the software's source code repository. It only contains the `PKGBUILD` and the necessary files for integration with our repositories.
6+
7+
## Official Project
8+
9+
**dz6** is a fast, Vim-inspired TUI hex editor. All development, original source code, bug reports (issues), and contributions (pull requests) must be directed to the official repository maintained by the original project.
10+
11+
🔗 **Official Project URL:** [https://github.com/mentebinaria/dz6](https://github.com/mentebinaria/dz6)

file-with-without

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkgbuild/PKGBUILD

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,46 @@
1-
# Maintainer: Barnabé di Kartola <barnabedikartola@gmail.com>
1+
# Maintainer: Bruno Gonçalves <bruno@biglinux.com.br>
2+
# Contributor: Barnabé di Kartola <barnabedikartola@gmail.com>
23

3-
pkgname=biglinux-package-template
4-
pkgdesc="Package template for biglinux"
5-
# depends=('')
6-
# makedepends=('')
7-
# conflicts=('')
8-
pkgver=$(date +%y.%m.%d)
9-
pkgrel=$(date +%H%M)
10-
arch=('any')
4+
pkgname=dz6
5+
pkgdesc="Fast Vim-inspired TUI hex editor"
6+
pkgver=0.6.0.r1.gbd7707b # Será atualizado automaticamente pela função pkgver()
7+
pkgrel=1
8+
arch=('x86_64' 'aarch64')
119
license=('GPL3')
12-
url="https://github.com/biglinux/$pkgname"
10+
url="https://github.com/mentebinaria/dz6"
1311
provides=("$pkgname")
12+
depends=('glibc' 'gcc-libs')
13+
makedepends=('cargo' 'git')
14+
15+
# Aponta para o repositório original onde está o código em Rust
1416
source=("git+${url}.git")
1517
md5sums=('SKIP')
16-
if [ -e "${pkgname}.install" ];then
18+
19+
if [ -e "${pkgname}.install" ]; then
1720
install=${pkgname}.install
18-
elif [ -e "pkgbuild.install" ];then
21+
elif [ -e "pkgbuild.install" ]; then
1922
install=pkgbuild.install
2023
fi
2124

22-
package() {
23-
# Verify default folder
24-
if [ -d "${srcdir}/${pkgname}/${pkgname}" ]; then
25-
InternalDir="${srcdir}/${pkgname}/${pkgname}"
26-
else
27-
InternalDir="${srcdir}/${pkgname}"
28-
fi
25+
pkgver() {
26+
cd "$pkgname"
27+
# Gera a versão baseada nas tags do git, removendo o 'v' inicial e formatando a revisão
28+
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
29+
}
2930

30-
# Copy files
31-
if [ -d "${InternalDir}/usr" ]; then
32-
cp -r "${InternalDir}/usr" "${pkgdir}/"
33-
fi
31+
build() {
32+
cd "$pkgname"
33+
export CARGO_TARGET_DIR=target
34+
cargo build --release --locked
35+
}
3436

35-
if [ -d "${InternalDir}/etc" ]; then
36-
cp -r "${InternalDir}/etc" "${pkgdir}/"
37-
fi
37+
package() {
38+
cd "$pkgname"
39+
40+
# Instala o executável compilado no diretório bin do sistema
41+
install -Dm755 "target/release/dz6" "${pkgdir}/usr/bin/dz6"
3842

39-
if [ -d "${InternalDir}/opt" ]; then
40-
cp -r "${InternalDir}/opt" "${pkgdir}/"
41-
fi
43+
# Instala arquivos úteis adicionais (Licença e README)
44+
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
45+
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
4246
}

0 commit comments

Comments
 (0)