generated from ext/template
This commit is contained in:
parent
166ff66a40
commit
238c85561b
6 changed files with 40 additions and 20 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "upstream"]
|
||||
path = upstream
|
||||
url = https://github.com/neovim/neovim
|
||||
|
|
@ -3,7 +3,10 @@ FROM ubuntu:24.04
|
|||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y dpkg-deb \
|
||||
make \
|
||||
# other packages to build \
|
||||
|
||||
|
||||
gcc \
|
||||
ninja-build \
|
||||
gettext \
|
||||
cmake \
|
||||
curl \
|
||||
build-essential \
|
||||
git
|
||||
|
|
|
|||
12
Makefile
12
Makefile
|
|
@ -1,14 +1,18 @@
|
|||
|
||||
package = mypackage.deb
|
||||
package = neovim.deb
|
||||
|
||||
.PHONY: compile
|
||||
compile:
|
||||
cd upstream && echo compile
|
||||
cd upstream && make CMAKE_BUILD_TYPE=Release
|
||||
|
||||
.PHONY: dpkg
|
||||
dpkg:
|
||||
mkdir -p deb-package/usr/bin/
|
||||
cp upstream/bin deb-package/usr/bin/
|
||||
mkdir -p deb-package/usr/bin deb-package/usr/lib/x86_64-linux-gnu/nvim deb-package/usr/share/applications deb-package/usr/share/icons/hicolor/128x128/app deb-package/usr/share/nvim
|
||||
cp upstream/build/bin/nvim deb-package/usr/bin/
|
||||
cp upstream/runtime/nvim.desktop deb-package/usr/share/applications/
|
||||
cp upstream/runtime/nvim.png deb-package/usr/share/icons/hicolor/128x128/app/
|
||||
cp -r upstream/build/lib/nvim/parser deb-package/usr/lib/x86_64-linux-gnu/nvim/
|
||||
cp -r upstream/runtime deb-package/usr/share/nvim/
|
||||
chmod -R o-w deb-package/
|
||||
sed -i "s|%date%|`date +%Y%m%d`|g" deb-package/DEBIAN/control
|
||||
sed -i "s|%hash%|$(commit_abbrev)|g" deb-package/DEBIAN/control
|
||||
|
|
|
|||
18
README.md
18
README.md
|
|
@ -1,6 +1,14 @@
|
|||
# Template for external project package building
|
||||
# Unofficial dpkg neovim 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
|
||||
hyperextensible Vim-based text editor
|
||||
|
||||
- <https://neovim.io/>
|
||||
- <https://github.com/neovim/neovim>
|
||||
|
||||
All credit to maintainer of neovim!
|
||||
|
||||
This repo provide semi-automatic build of main branch to ubuntu 24.04 (noble) dpkg package:
|
||||
|
||||
<https://forge.e5150.fr/ext/-/packages/debian/neovim-main/>
|
||||
|
||||
License file in this repo only apply to build & packaging step files, neovim is licensed as Apache 2.0 license, see upstream project for details.
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
Package: mypackage-main
|
||||
Package: neovim-main
|
||||
Version: 0.0.1~git%date%.%hash%-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/neovim
|
||||
Depends: libc6 (>= 2.38), libluajit-5.1-2 (>= 2.0.4+dfsg) | libluajit2-5.1-2 (>= 2.1~)
|
||||
Breaks: neovim-runtime (<< 0.8.0~~)
|
||||
Replaces: neovim-runtime (<< 0.8.0~~)
|
||||
Provides: editor, vim
|
||||
Description: neovim build from main
|
||||
Auto packaging of neovim following main dev branch
|
||||
|
|
|
|||
1
upstream
Submodule
1
upstream
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit ccf020d0f36ab1152448be522901bed11be0db1b
|
||||
Loading…
Add table
Add a link
Reference in a new issue