From 6175e97ac55eda6a1253bb661bc84c98096fca3f Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 10:32:04 +0200 Subject: [PATCH 1/6] first work in making it a deb package --- contacts-importer.sh => contacts-importer | 0 contacts-importer.desktop | 2 +- debian/changelog.Debian | 5 ++++ debian/control | 11 +++++++++ debian/copyright | 29 +++++++++++++++++++++++ debian/install | 2 ++ 6 files changed, 48 insertions(+), 1 deletion(-) rename contacts-importer.sh => contacts-importer (100%) create mode 100644 debian/changelog.Debian create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/install diff --git a/contacts-importer.sh b/contacts-importer similarity index 100% rename from contacts-importer.sh rename to contacts-importer diff --git a/contacts-importer.desktop b/contacts-importer.desktop index 4584808..2f7b116 100644 --- a/contacts-importer.desktop +++ b/contacts-importer.desktop @@ -2,5 +2,5 @@ Name=Contacts Importer Type=Application Icon=preferences-desktop-personal -Exec=contacts-importer.sh +Exec=/usr/local/bin/contacts-importer Categories=Utility; diff --git a/debian/changelog.Debian b/debian/changelog.Debian new file mode 100644 index 0000000..fb90f2f --- /dev/null +++ b/debian/changelog.Debian @@ -0,0 +1,5 @@ +contacts-importer (0.0-1_pureos10) unstable; urgency=medium + + * Initial release. + + -- João Azevedo Fri, 19 Jun 2020 13:47:46 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..69683b7 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Package: contacts-importer +Version: 0.0-1+pureos10 +Architecture: all +Maintainer: João Azevedo +Depends: yad, syncevolution, libnotify-bin, evolution-data-server +Installed-Size: 38 +Section: comm +Priority: optional +Homepage: https://source.puri.sm/pureos/packages/diy-contacts-importer +Description: Diy contacts importer + A simple script to import contacts from vcards into Evolution Data Server diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d06ad65 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: diy-contacts-importer +Upstream-Contact: https://source.puri.sm/pureos/packages/diy-contacts-importer +Source: https://source.puri.sm/pureos/packages/diy-contacts-importer + +Files: * +Copyright: (C) 2019 João Azevedo (joao.azvedo@puri.sm) + +License: GPL-3.0+ + +Files: * + +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 + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..bd958a8 --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +contacts-importer /usr/local/bin +contacts-importer.desktop /usr/local/bin/contacts-importer From 46de0fb8ae4c4dc05dda04406414aeaa51993c16 Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 10:35:35 +0200 Subject: [PATCH 2/6] add rules file --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 debian/rules diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..ee51d64 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +%: + dh $@ + + From bce3f15b71bbbf681b37f769425023aa3cb9c7a9 Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 10:58:54 +0200 Subject: [PATCH 3/6] Added gitlab-ci file --- .gitlab-ci | 13 +++++++++++++ debian/{changelog.Debian => changelog} | 2 +- debian/control | 1 + debian/rules | 0 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci rename debian/{changelog.Debian => changelog} (62%) mode change 100644 => 100755 debian/rules diff --git a/.gitlab-ci b/.gitlab-ci new file mode 100644 index 0000000..600d212 --- /dev/null +++ b/.gitlab-ci @@ -0,0 +1,13 @@ +# build on PureOS byzantium +default: image: pureos/byzantium:latest + +# Update packages +before_script: + - DEBIAN_FRONTEND=noninteractive apt -yqq update + - DEBIAN_FRONTEND=noninteractive apt -y install build-essential devscripts + +build: + script: debuild -us -uc + tags: + - byzantium + diff --git a/debian/changelog.Debian b/debian/changelog similarity index 62% rename from debian/changelog.Debian rename to debian/changelog index fb90f2f..7e3b79f 100644 --- a/debian/changelog.Debian +++ b/debian/changelog @@ -1,4 +1,4 @@ -contacts-importer (0.0-1_pureos10) unstable; urgency=medium +contacts-importer (0.0-1+pureos10) unstable; urgency=medium * Initial release. diff --git a/debian/control b/debian/control index 69683b7..eb17672 100644 --- a/debian/control +++ b/debian/control @@ -9,3 +9,4 @@ Priority: optional Homepage: https://source.puri.sm/pureos/packages/diy-contacts-importer Description: Diy contacts importer A simple script to import contacts from vcards into Evolution Data Server + diff --git a/debian/rules b/debian/rules old mode 100644 new mode 100755 From c5f753a69ee569267cdb9097049d7b92c948c09e Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 11:07:25 +0200 Subject: [PATCH 4/6] typo --- .gitlab-ci | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .gitlab-ci diff --git a/.gitlab-ci b/.gitlab-ci deleted file mode 100644 index 600d212..0000000 --- a/.gitlab-ci +++ /dev/null @@ -1,13 +0,0 @@ -# build on PureOS byzantium -default: image: pureos/byzantium:latest - -# Update packages -before_script: - - DEBIAN_FRONTEND=noninteractive apt -yqq update - - DEBIAN_FRONTEND=noninteractive apt -y install build-essential devscripts - -build: - script: debuild -us -uc - tags: - - byzantium - From d17ffef9bea06869e08fee772a30dd114ad465e1 Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 11:10:57 +0200 Subject: [PATCH 5/6] typo --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..600d212 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +# build on PureOS byzantium +default: image: pureos/byzantium:latest + +# Update packages +before_script: + - DEBIAN_FRONTEND=noninteractive apt -yqq update + - DEBIAN_FRONTEND=noninteractive apt -y install build-essential devscripts + +build: + script: debuild -us -uc + tags: + - byzantium + From 7537de9cc2824093a98a90f45f0951ec66b5a56f Mon Sep 17 00:00:00 2001 From: Joao Azevedo Date: Wed, 24 Jun 2020 11:13:22 +0200 Subject: [PATCH 6/6] new typo found --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 600d212..8f999e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ # build on PureOS byzantium -default: image: pureos/byzantium:latest +default: + image: pureos/byzantium:latest # Update packages before_script: