Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Dpkg recipe for NotepadNext

I saw an article on Hacker News about NotepadNext, a project that is a QT-based, cross-platform reimplementation of my beloved Notepad++. I couldn't find any dpkg implementations of NotepadNext, so I decided to take that mantle up for myself. Upstream wasn't interested in housing the debian directory because they want to use Flatpak or AppImage or some other short-term trendy package format.

Here is my debian/ for you.

The only noteworthy parts are in d/rules:

# Omit -Werror=format-security with -format here, because of LuaExtension.cpp weirdness, 2022-04-14
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-format

%:
    dh $@ --buildsystem=qmake --sourcedirectory=src/NotepadNext

override_dh_auto_build:
    mkdir build || :
    cd build ; pwd ; qmake6 ../src/NotepadNext.pro; make

override_dh_auto_clean:
    dh_auto_clean
    rm -rf build/ || :

Thanks to the AUR PKGBUILD for the guidance on the build steps!

Comments