From 9e04e90373619e6b8a746591d55e5174e35d56b3 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Tue, 20 Nov 2018 05:59:46 +0000 Subject: [PATCH] New package: cycle-0.3.2 closes #4663 closes #4940 --- srcpkgs/cycle/files/cycle.desktop | 9 ++++++++ srcpkgs/cycle/template | 36 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/cycle/files/cycle.desktop create mode 100644 srcpkgs/cycle/template diff --git a/srcpkgs/cycle/files/cycle.desktop b/srcpkgs/cycle/files/cycle.desktop new file mode 100644 index 00000000000..099d060c693 --- /dev/null +++ b/srcpkgs/cycle/files/cycle.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Exec='/usr/bin/cycle' +GenericName=Cycle +Icon=cycle +Name=Cycle +Terminal=false +Type=Application +Categories=Education;Science;MedicalSoftware +Keywords=Calendar;Women;Menstruation;Ovulation; diff --git a/srcpkgs/cycle/template b/srcpkgs/cycle/template new file mode 100644 index 00000000000..d24fab6847a --- /dev/null +++ b/srcpkgs/cycle/template @@ -0,0 +1,36 @@ +# Template file for 'cycle' +pkgname=cycle +version=0.3.2 +revision=1 +noarch=yes +pycompile_dirs="usr/share/cycle" +hostmakedepends="python" +depends="wxPython" +short_desc="Menstrual cycle tracking program" +maintainer="Cameron Nemo " +license="GPL-2.0-or-later" +homepage="https://github.com/jose1711/cycle" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=6ca5a8191653d435ed04968b91b4a52c8e0d3d90d31d2c008aba1e9edcc1adc9 + +do_install() { + # Program + vmkdir usr/share/cycle + for f in cal_year dialogs p_rotor save_load set_dir; do + vinstall "${f}.py" 0644 usr/share/cycle + done + vinstall cycle.py 0755 usr/share/cycle + vmkdir usr/bin + ln -rs "${DESTDIR}/usr/share/cycle/cycle.py" "${DESTDIR}/usr/bin/cycle" + # Assets + vcopy bitmaps usr/share/cycle + vcopy icons usr/share/cycle + # Translations + vmkdir usr/share/locale + for dir in $(find msg -mindepth 1 -maxdepth 1 -type d); do + vcopy "$dir" usr/share/locale + done + # Contriband + vman cycle.1 + vinstall "${FILESDIR}/cycle.desktop" 0644 usr/share/applications +}