generated from ext/template
feat(project): configure fzf build files
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
This commit is contained in:
parent
77eb78058b
commit
d060b16bed
6 changed files with 26 additions and 19 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "upstream"]
|
||||
path = upstream
|
||||
url = https://github.com/junegunn/fzf.git
|
||||
|
|
@ -3,4 +3,4 @@ FROM ubuntu:24.04
|
|||
RUN apt-get update && \
|
||||
apt-get install -y curl \
|
||||
make \
|
||||
# other packages to build \
|
||||
golang
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -1,13 +1,13 @@
|
|||
package = mypackage.deb
|
||||
package = fzf-main.deb
|
||||
|
||||
.PHONY: compile
|
||||
compile:
|
||||
cd upstream && echo compile
|
||||
cd upstream && make
|
||||
|
||||
.PHONY: dpkg
|
||||
dpkg:
|
||||
mkdir -p deb-package/usr/bin/
|
||||
cp upstream/bin deb-package/usr/bin/
|
||||
cp upstream/target/fzf-linux_amd64 deb-package/usr/bin/fzf
|
||||
chmod -R o-w deb-package/
|
||||
sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
|
||||
dpkg-deb --build deb-package/ $(package)
|
||||
|
|
|
|||
19
README.md
19
README.md
|
|
@ -1,12 +1,15 @@
|
|||
# Template for external project package building
|
||||
# Unofficial dpkg fzf build from main branch
|
||||
|
||||
- git submodule add <https://repo.example.com/external/repo.git> upstream
|
||||
- Makefile: change package name & compile / dpkg target instructions
|
||||
- Dockerfile.builder: required deb packages / base image
|
||||
- deb-package/DEBIAN/control: Package name, depends, conflict & description
|
||||
fzf is a command-line fuzzy finder:
|
||||
|
||||
## Use template
|
||||
- <https://github.com/junegunn/fzf>
|
||||
|
||||
When using this template check Git content, Issue labels & Branch protection
|
||||
All credit to junegunn and other contributors of this useful project!
|
||||
|
||||

|
||||
This repo provide semi-automatic build of main branch to ubuntu 24.04 (noble)
|
||||
dpkg package:
|
||||
|
||||
<https://forge.e5150.fr/ext/fzf>
|
||||
|
||||
License file in this repo only apply to build & packaging step files, fzf is
|
||||
licensed as MIT, see upstream project for details.
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
Package: mypackage-main
|
||||
Package: fzf-main
|
||||
Version: 0.0.1~git%date%-1
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: pips <pips@e5150.fr>
|
||||
Homepage: https://example.com
|
||||
Suggests: suggeted-packages
|
||||
Depends: depends (>= X.Y.Z), packages (>= X.Y)
|
||||
Conflicts: package-from-official-repo
|
||||
Description: Description of mypackage
|
||||
Auto packaging of mypackage following main dev branch
|
||||
Homepage: https://forge.e5150.fr/ext/fzf
|
||||
Depends: libc6 (>= 2.34)
|
||||
Conflicts: fzf
|
||||
Replaces: fzf
|
||||
Description: fzf build from main
|
||||
Auto packaging of fzf following main dev branch
|
||||
|
|
|
|||
1
upstream
Submodule
1
upstream
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 3401c2e0c7c441c2a13c11e958f6b99efc50bd29
|
||||
Loading…
Add table
Add a link
Reference in a new issue