Update packaging information
This commit is contained in:
parent
68262b6212
commit
517dd3cbce
13
PKGBUILD
13
PKGBUILD
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
||||||
pkgname=file-scripts
|
pkgname=file-scripts
|
||||||
pkgver=0.9.0
|
pkgver=0.9.1
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
|
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
|
||||||
arch=(any)
|
arch=(any)
|
||||||
@ -19,11 +19,8 @@ pkgver() {
|
|||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd "${srcdir}/${pkgname}"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}"/usr/{bin,share/zsh/{plugins/helper-scripts,site-functions}}
|
python setup.py build
|
||||||
|
python setup.py --root="$pkgdir" install
|
||||||
for script in *.{py,sh}; do
|
|
||||||
install -m755 "${script}" "${pkgdir}/usr/bin/${script%.*}"
|
|
||||||
done
|
|
||||||
|
|
||||||
## Install /etc/config files
|
## Install /etc/config files
|
||||||
#install -dm755 "${pkgdir}/etc/helper-scripts"
|
#install -dm755 "${pkgdir}/etc/helper-scripts"
|
||||||
@ -41,3 +38,7 @@ package() {
|
|||||||
# install -m644 "${plugin}" "${pkgdir}/usr/share/zsh/plugins/helper-scripts/${plugin##*/}"
|
# install -m644 "${plugin}" "${pkgdir}/usr/share/zsh/plugins/helper-scripts/${plugin##*/}"
|
||||||
#done
|
#done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
pytest
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package file-scripts
|
# spec file for package file-scripts
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: file-scripts
|
Name: file-scripts
|
||||||
Version: 0.9
|
Version: 0.9.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Eric's helper scripts
|
Summary: Eric's helper scripts
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
@ -47,12 +47,7 @@ Plugins and completions for helper scripts.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Install scripts in /usr/bin first
|
%{python_install}
|
||||||
SCRIPTDIR='%{buildroot}%{_bindir}'
|
|
||||||
|
|
||||||
for script in *.{py,sh}; do
|
|
||||||
install -Dm755 "${script}" "${SCRIPTDIR}/${script%.*}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install zsh plugins
|
# Install zsh plugins
|
||||||
ZSHPLUGINDIR='%{buildroot}%{_datadir}/zsh/plugins/helper-scripts'
|
ZSHPLUGINDIR='%{buildroot}%{_datadir}/zsh/plugins/helper-scripts'
|
||||||
|
4
setup.py
4
setup.py
@ -21,12 +21,12 @@ setuptools.setup(
|
|||||||
description="File-related helper scripts",
|
description="File-related helper scripts",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://gitlab.com/pypa/sampleproject",
|
url="https://github.com/etorres4/file-scripts",
|
||||||
packages=PACKAGES,
|
packages=PACKAGES,
|
||||||
scripts=SCRIPTS,
|
scripts=SCRIPTS,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: GNU GPLv3 License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
],
|
],
|
||||||
command_options={
|
command_options={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user