Giter VIP home page Giter VIP logo

notepadqq-packaging's Introduction

Notepadqq Notepadqq Build Status notepadqq

This project is not actively maintained anymore. New maintainers are welcome.

-- Daniele

Links

What is it?

Notepadqq is a text editor designed by developers, for developers.

screenshot_20180302_163505

Please visit our Wiki for more screenshots and details.

Build it yourself

Build dependencies Dependencies
Qt 5.6 or higher Qt 5.6 or higher
qtwebengine5-dev qtwebengine5
libqt5websockets5-dev libqt5websockets5
libqt5svg5-dev libqt5svg5
qttools5-dev-tools coreutils
libuchardet-dev libuchardet
pkg-config

Get the source

$ git clone --recursive https://github.com/notepadqq/notepadqq.git
$ cd notepadqq

Build

notepadqq$ ./configure --prefix /usr
notepadqq$ make

If you encounter errors make sure to have the necessary libraries installed. For Ubuntu you can do that using apt-get:

sudo apt-get install qt5-default qttools5-dev-tools qtwebengine5-dev libqt5websockets5-dev libqt5svg5 libqt5svg5-dev libuchardet-dev pkg-config

For CentOS:

sudo yum install -y qt5-qtbase-devel qt5-qttools-devel qt5-qtwebengine-devel qt5-qtwebsockets-devel qt5-qtsvg-devel uchardet qt5-qtwebchannel-devel pkgconfig

Install

You can run notepadqq from its build output folder. If however you want to install it, first build it by following the above steps, then run:

notepadqq$ sudo make install

Qt

If the newest version of Qt isn't available on your distribution, you can use the online installer to get the latest libraries and install them into your home directory ($HOME/Qt). Notepadqq will automatically use them.

Distribution Packages

Ubuntu, Debian, and others:

sudo apt install notepadqq

Snap

To install the latest stable version:

sudo snap install notepadqq

You don't have the snap command? Follow the instructions at https://docs.snapcraft.io/core/install and then install Notepadqq as shown above.

You can follow the unstable development releases from the "edge" channel.

Arch Linux (community-maintained)

Notepadqq is available from Arch's community repositories. To install using pacman:

sudo pacman -S notepadqq

Alternatively it can be found in the AUR:

OpenSUSE (community-maintained)

Notepadqq is avilable in OpenSUSE's main repository:

 sudo zypper in notepadqq

Solus (community-maintained)

Notepadqq is available in the shannon (stable) repository:

 sudo eopkg it notepadqq

Others

Use a package for a compatible distribution, or build from source. If you want to submit a package: https://github.com/notepadqq/notepadqq-packaging

Compiling on macOS

Instructions can be found here.

notepadqq-packaging's People

Contributors

danieleds avatar darealshinji avatar flamusdiu avatar jdeluyck avatar joebonrichie avatar sri-arjuna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notepadqq-packaging's Issues

configure not called in Debian build process

I don't think the debian\rules is defined properly as I didn't see that the ./configure is being invoked in build log (https://launchpadlibrarian.net/191397250/buildlog_ubuntu-utopic-amd64.notepadqq_0.41.0-0~utopic1_UPLOADING.txt.gz), which is a required step according to https://github.com/notepadqq/notepadqq: You can build Notepadqq from command line:

notepadqq$ ./configure --prefix /usr. 

Please verify.
PS. I don't know the fix because I was looking for an example of debian\rules to invoke ./configure before make.

Debian Package Missing Files

Seem the debian package is missing files. Using this .deb file: https://launchpad.net/~notepadqq-team/+archive/ubuntu/notepadqq/+files/notepadqq_0.40.1-0~utopic1_amd64.deb

Here's the output when extracting the .deb file during the install process:

[notepadqq-bin]$ tree -d usr
usr
|-- bin
|-- lib
|   `-- notepadqq
`-- share
    |-- applications
    |-- doc
    |   |-- notepadqq -> notepadqq-common
    |   `-- notepadqq-common
    `-- man
        `-- man1

10 directories

Compare that to this one when I build it from git:

[notepadqq-git]$ tree -d usr 
usr
|-- bin
|-- lib
|   `-- notepadqq
`-- share
    |-- applications
    |-- icons
    |   `-- hicolor
    |       |-- 128x128
    |       |   `-- apps
    |       |-- 16x16
    |       |   `-- apps
    |       |-- 24x24
    |       |   `-- apps
    |       |-- 256x256
    |       |   `-- apps
    |       |-- 32x32
    |       |   `-- apps
    |       |-- 48x48
    |       |   `-- apps
    |       |-- 512x512
    |       |   `-- apps
    |       |-- 64x64
    |       |   `-- apps
    |       |-- 96x96
    |       |   `-- apps
    |       `-- scalable
    |           `-- apps
    |-- notepadqq
    |   `-- editor
    |       |-- classes
    |       |-- images
    |       |-- libs
    |       |   |-- codemirror
    |       |   |   |-- addon
    |       |   |   |   |-- comment
    |       |   |   |   |-- dialog
    |       |   |   |   |-- display
    |       |   |   |   |-- edit
    |       |   |   |   |-- fold
    |       |   |   |   |-- hint
    |       |   |   |   |-- lint
    |       |   |   |   |-- merge
    |       |   |   |   |-- mode
    |       |   |   |   |-- runmode
    |       |   |   |   |-- scroll
    |       |   |   |   |-- search
    |       |   |   |   |-- selection
    |       |   |   |   |-- tern
    |       |   |   |   `-- wrap
    |       |   |   |-- keymap
    |       |   |   |-- lib
    |       |   |   |-- mode
    |       |   |   |   |-- apl
    |       |   |   |   |-- asterisk
    |       |   |   |   |-- clike
    |       |   |   |   |-- clojure
    |       |   |   |   |-- cobol
    |       |   |   |   |-- coffeescript
    |       |   |   |   |-- commonlisp
    |       |   |   |   |-- css
    |       |   |   |   |-- cypher
    |       |   |   |   |-- d
    |       |   |   |   |-- diff
    |       |   |   |   |-- django
    |       |   |   |   |-- dtd
    |       |   |   |   |-- dylan
    |       |   |   |   |-- ecl
    |       |   |   |   |-- eiffel
    |       |   |   |   |-- erlang
    |       |   |   |   |-- fortran
    |       |   |   |   |-- gas
    |       |   |   |   |-- gfm
    |       |   |   |   |-- gherkin
    |       |   |   |   |-- go
    |       |   |   |   |-- groovy
    |       |   |   |   |-- haml
    |       |   |   |   |-- haskell
    |       |   |   |   |-- haxe
    |       |   |   |   |-- htmlembedded
    |       |   |   |   |-- htmlmixed
    |       |   |   |   |-- http
    |       |   |   |   |-- jade
    |       |   |   |   |-- javascript
    |       |   |   |   |-- jinja2
    |       |   |   |   |-- julia
    |       |   |   |   |-- kotlin
    |       |   |   |   |-- livescript
    |       |   |   |   |-- lua
    |       |   |   |   |-- makefile
    |       |   |   |   |-- markdown
    |       |   |   |   |-- mirc
    |       |   |   |   |-- mllike
    |       |   |   |   |-- modelica
    |       |   |   |   |-- nginx
    |       |   |   |   |-- ntriples
    |       |   |   |   |-- octave
    |       |   |   |   |-- pascal
    |       |   |   |   |-- pegjs
    |       |   |   |   |-- perl
    |       |   |   |   |-- php
    |       |   |   |   |-- pig
    |       |   |   |   |-- properties
    |       |   |   |   |-- puppet
    |       |   |   |   |-- python
    |       |   |   |   |-- q
    |       |   |   |   |-- r
    |       |   |   |   |-- rpm
    |       |   |   |   |   `-- changes
    |       |   |   |   |-- rst
    |       |   |   |   |-- ruby
    |       |   |   |   |-- rust
    |       |   |   |   |-- sass
    |       |   |   |   |-- scheme
    |       |   |   |   |-- shell
    |       |   |   |   |-- sieve
    |       |   |   |   |-- slim
    |       |   |   |   |-- smalltalk
    |       |   |   |   |-- smarty
    |       |   |   |   |-- smartymixed
    |       |   |   |   |-- solr
    |       |   |   |   |-- sparql
    |       |   |   |   |-- sql
    |       |   |   |   |-- stex
    |       |   |   |   |-- tcl
    |       |   |   |   |-- textile
    |       |   |   |   |-- tiddlywiki
    |       |   |   |   |-- tiki
    |       |   |   |   |-- toml
    |       |   |   |   |-- tornado
    |       |   |   |   |-- turtle
    |       |   |   |   |-- vb
    |       |   |   |   |-- vbscript
    |       |   |   |   |-- velocity
    |       |   |   |   |-- verilog
    |       |   |   |   |-- xml
    |       |   |   |   |-- xquery
    |       |   |   |   |-- yaml
    |       |   |   |   `-- z80
    |       |   |   `-- theme
    |       |   `-- jquery
    |       `-- styles
    `-- pixmaps

142 directories

[Arch] Update build commands

@flamusdiu Build commands have changed:
instead of qmake, you have to call ./configure (requires git, because it automatically downloads submodules).
Looking at the current PKGBUILD, I think it should become something similar to this:

./configure --qmake-path qmake-qt5 --prefix "${pkgdir}/usr"

Debian policy

I get the following warning when I build a package:
E: notepadqq: arch-dependent-file-in-usr-share usr/share/notepadqq/notepadqq
W: notepadqq: embedded-javascript-library usr/share/notepadqq/editor/libs/jquery/jquery.min.js

arch-dependent files should never be installed in /usr/share. It should be installed to /usr/lib or /usr/bin.
And jquery.min.js should be replaced with a symbolic link and the package libjs-jquery should be added as a dependency.

RPM Release

I see in the instructions that there is a testing repo but it hasn't been updated in years, i also see that the package being submitted to the official fedora repo but no progress in months, Is there a change to update the repo with the latest version? Or update the build instructions (.sh file) for rpm?

Ubuntu: Lintian warnings for notepadqq-common package

I get Lintian warnings for the notepadqq-common package:

djcj: ~/Downloads $ lintian notepadqq-common_0.50.1-0~vivid1_all.deb 
W: notepadqq-common: embedded-javascript-library usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/async/lib/async.js please use libjs-async
W: notepadqq-common: extra-license-file usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/tar-stream/node_modules/xtend/LICENCE
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/async/support/sync-package-managers.js #!node
W: notepadqq-common: script-not-executable usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
W: notepadqq-common: script-not-executable usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/tar-stream/node_modules/bl/test/sauce.js
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/tar-stream/node_modules/bl/test/sauce.js #!node
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/shelljs/bin/shjs #!node
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/shelljs/scripts/generate-docs.js #!node
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/shelljs/scripts/run-tests.js #!node
N: 1 tag overridden (1 warning)

I assume these files can be removed from usr/share/notepadqq/extension_tools:

node_modules/archiver/node_modules/tar-stream/node_modules/xtend/LICENCE
node_modules/archiver/node_modules/async/support
node_modules/shelljs/scripts
node_modules/archiver/node_modules/lazystream/test
node_modules/archiver/node_modules/glob/node_modules/once/node_modules/wrappy/test
node_modules/archiver/node_modules/glob/node_modules/once/test
node_modules/archiver/node_modules/glob/node_modules/inflight/node_modules/wrappy/test
node_modules/archiver/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test
node_modules/archiver/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test
node_modules/archiver/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test
node_modules/archiver/node_modules/buffer-crc32/tests
node_modules/archiver/node_modules/tar-stream/node_modules/end-of-stream/node_modules/once/node_modules/wrappy/test
node_modules/archiver/node_modules/tar-stream/node_modules/end-of-stream/node_modules/once/test
node_modules/archiver/node_modules/tar-stream/node_modules/bl/test

And I guess these can be overridden:

W: notepadqq-common: embedded-javascript-library usr/share/notepadqq/extension_tools/node_modules/archiver/node_modules/async/lib/async.js please use libjs-async
W: notepadqq-common: unusual-interpreter usr/share/notepadqq/extension_tools/node_modules/shelljs/bin/shjs #!node

Do you have the plan to appimage release

I have Qt5.6.1 installed in my deepin distro, after compiling notepadqq, and launching it, i just got 7316 segmentation fault. I think an appimage will be better for most of the distros

Adding Fedora

Heya

So me created a script, a patch and a specfile to make it a proper Fedora package.
I had forked the code, and pushed my local changes to 'my' fork,

What are the next steps please?

  • this is a first time experience :)

Thank you

openSUSE Build Service builds of Notepadqq for Debian, Fedora and Ubuntu

Hi,

I thought I'd just let yas know that I have built Notepadqq 1.4.8 for Debian 8, 9 and Testing, Fedora 27 and 28 and Ubuntu 14.04, 16.04, 17.10 and 18.04 in my openSUSE Build Service (OBS) project — https://build.opensuse.org/package/show/home:fusion809/notepadqq. If you want some installation instructions merely go to https://software.opensuse.org//download.html?project=home%3Afusion809&package=notepadqq, click on the logo of the distribution you want to install Notepadqq on and follow the instructions it provides. Frankly it was very easy to adapt the packaging files used by the official PPA and the spec file and node patch in this repository for use by the OBS. I'm surprised you's don't use the OBS, as it would mean you could provide repositories for not only Ubuntu, but Debian and Fedora too. I cannot guarantee I'll be able to maintain the Notepadqq package long-term, but you's can easily pick it up if I can no longer.

Thanks for your time,
Brenton

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.