Skip to content

Commit

Permalink
Merge pull request #507 from JonasGroeger/feature/linux64-deb-makefile
Browse files Browse the repository at this point in the history
Feature: Makefile and debian packaging for linux64
  • Loading branch information
weblancaster committed Jan 27, 2016
2 parents 1e93f2d + 13cc4e1 commit f763dda
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
DESTDIR = /tmp

SNA_INSTALL_LOCATION = "$(DESTDIR)/opt/soundnodeapp/"

SNA_DIST_LOCATION = "dist/Soundnode-App/linux64"

verify_dist_exists:
@if test ! -d $(SNA_DIST_LOCATION) ; then \
echo "The distribution folder '$(SNA_DIST_LOCATION)' doesen't exist."; \
echo "Did you forget to run 'grunt build'?"; \
exit 1; \
fi

install: verify_dist_exists
mkdir -p $(SNA_INSTALL_LOCATION)

cp --force --recursive --target-directory $(SNA_INSTALL_LOCATION) \
$(SNA_DIST_LOCATION)/icudtl.dat \
$(SNA_DIST_LOCATION)/libffmpegsumo.so \
$(SNA_DIST_LOCATION)/locales/ \
$(SNA_DIST_LOCATION)/nw.pak \
$(SNA_DIST_LOCATION)/Soundnode-App

uninstall:
rm -rf $(SNA_INSTALL_LOCATION)

clean:
rm --force --recursive \
debian/soundnodeapp \
debian/files \
debian/docs \
debian/*.log \
debian/*.substvars
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
soundnodeapp (0.6.1-1) wily; urgency=low

* Soundcloudapp 0.6.1 from www.soundnodeapp.com

-- Jonas Gröger <jonas.groeger@posteo.de> Mon, 25 Jan 2016 11:28:49 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
14 changes: 14 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Source: soundnodeapp
Section: unknown
Priority: optional
Maintainer: Jonas Gröger <jonas.groeger@posteo.de>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.6
Homepage: http://www.soundnodeapp.com

Package: soundnodeapp
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Soundcloud for Ubuntu/Debian
Explore the largest community of artists, bands,
podcasters and creators of music & audio.
37 changes: 37 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: soundnodeapp
Source: https://github.com/Soundnode/soundnode-app

Files: *
Copyright: 2014-2016 Michael Lancaster <michaell.llancaster@gmail.com>
2014-2016 Open Source Contributers
License: GPL-3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

Files: debian/*
Copyright: 2016 Jonas Gröger <jonas.groeger@posteo.de>
License: GPL-3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

9 changes: 9 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# main packaging script based on dh7 syntax
%:
dh $@

0 comments on commit f763dda

Please sign in to comment.