From d70407afc2d2924212baaef78ccdfe1a7d06b67a Mon Sep 17 00:00:00 2001 From: Jason Manley Date: Wed, 19 Jan 2022 15:55:19 -0600 Subject: [PATCH] New package: headphones-0.5.20 --- srcpkgs/headphones/files/headphones/run | 3 +++ srcpkgs/headphones/template | 34 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 srcpkgs/headphones/files/headphones/run create mode 100644 srcpkgs/headphones/template diff --git a/srcpkgs/headphones/files/headphones/run b/srcpkgs/headphones/files/headphones/run new file mode 100755 index 000000000000..d0dadd2afba3 --- /dev/null +++ b/srcpkgs/headphones/files/headphones/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec chpst -u headphones:headphones python2 /opt/headphones/Headphones.py diff --git a/srcpkgs/headphones/template b/srcpkgs/headphones/template new file mode 100644 index 000000000000..41fb09bbb334 --- /dev/null +++ b/srcpkgs/headphones/template @@ -0,0 +1,34 @@ +# Template file for 'headphones' +pkgname=headphones +version=0.5.20 +revision=1 +#archs="i686 x86_64" +#wrksrc= +#create_wrksrc=yes +#build_style=fetch +#configure_args="" +#make_build_args="" +#make_install_args="" +#conf_files="" +make_dirs="/opt/headphones 0755 headphones headphones" +depends="python" +short_desc="Music downloading and organizing tool" +maintainer="Jason Manley " +license="GPL-3.0-or-later" +homepage="https://github.com/rembo10/headphones" +distfiles="https://github.com/rembo10/${pkgname}/archive/refs/tags/v${version}.tar.gz" +checksum=4c83debece1a8386f57ccf73f1c35f04c391846f1528e477cec6382767244e54 +python_version=2 + +system_accounts="headphones" +headphones_homedir="/opt/headphones" +headphones_shell="/sbin/nologin" + +do_install() { +vmkdir opt/ +vcopy ${wrksrc} opt/headphones/ +} + +post_install() { +vsv headphones +}