Skip to content

debian package #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# exclude debian building logs
files
debhelper-build-stamp
pidgin-plugin-window-merge
*.log
*.substvars
# dummy deb package with build dependencies (mk-build-deps ./control)
*.deb

# Dolphin file manager creates the file .directory to save some folder-specific settings
*.directory

40 changes: 40 additions & 0 deletions debian/build-ppa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
# Written and used by Mikhail Novosyolov <[email protected]> for building the hw-probe package to the Launchpad.net PPA repository for Ubuntu and Debian
# Open-sourced to allow other people do the same easily
# Thanks to Denis Linvinus <[email protected]> for the base of this script

pkg_name="pidgin-plugin-window-merge"

# override different ls aliases that may break this script
alias ls="$(which ls)"

# this allows the script to be ran both from the root of the source tree and from ./debian directory
dir_start="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "$(basename "${dir_start}")" = 'debian' ]; then
cd ..
fi
dir0="$(pwd)"
old_header=$(head -1 ./debian/changelog)

for i in trusty xenial artful bionic
do
old_version="$(cat ./debian/changelog | head -n 1 | awk -F "(" '{print $2}' | awk -F ")" '{print $1}')"
new_version="${old_version}~${i}1"
sed -i -re "s/${old_version}/${new_version}/g" ./debian/changelog
sed -i -re "1s/unstable/$i/" ./debian/changelog
# -I to exclude .git; -d to allow building .changes file without build dependencies installed
dpkg-buildpackage -I -S -sa -d
sed -i -re "1s/.*/${old_header}/" ./debian/changelog
cd ..

# change PPA names to yours, you may leave only one PPA; I upload hw-probe to 2 different PPAs at the same time
for reponame in "ppa:mikhailnov/utils"
do
dput -f "$reponame" "$(ls -tr ${pkg_name}_*_source.changes | tail -n 1)"
done

cd "$dir0"
sleep 1
done

cd "$dir_start"
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pidgin-plugin-window-merge (0.3-git20180429-1) unstable; urgency=low

* Initial build

-- Mikhail Novosyolov <[email protected]> Sun, 29 Apr 2018 02:00:00 +0300
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
13 changes: 13 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: pidgin-plugin-window-merge
Section: net
Priority: optional
Maintainer: Mikhail Novosyolov <[email protected]>
Build-Depends: debhelper (>=9), pidgin-dev, dh-autoreconf
Standards-Version: 3.9.6
Homepage: https://github.com/dm0-/window_merge/

Package: pidgin-plugin-window-merge
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, pidgin
Description: Pidgin plugin for merging windows
A Pidgin plugin that merges the Buddy List window with a conversation window
5 changes: 5 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/make -f

export DH_VERBOSE=255
%:
dh $@ --with autoreconf
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/<project>-$1\.tar\.gz/ \
https://github.com/dm0-/window_merge/tags .*/v?(\d\S+)\.tar\.gz