mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Improved arch packaging
No need to bundle a .desktop file with arch source packages anymore. dupeGuru's source package takes care of that.
This commit is contained in:
8
pkg/arch/dupeguru.desktop
Normal file
8
pkg/arch/dupeguru.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name={longname}
|
||||
Comment=Find duplicate files.
|
||||
Exec={execname}
|
||||
Icon={iconpath}
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
7
pkg/arch/me.json
Normal file
7
pkg/arch/me.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-me",
|
||||
"longname": "dupeGuru Music Edition",
|
||||
"execname": "dupeguru-me",
|
||||
"arch": "all",
|
||||
"iconpath": "/usr/share/dupeguru-me/dgme_logo_128.png"
|
||||
}
|
||||
7
pkg/arch/pe.json
Normal file
7
pkg/arch/pe.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-pe",
|
||||
"longname": "dupeGuru Picture Edition",
|
||||
"execname": "dupeguru-pe",
|
||||
"arch": "any",
|
||||
"iconpath": "/usr/share/dupeguru-pe/dgpe_logo_128.png"
|
||||
}
|
||||
7
pkg/arch/se.json
Normal file
7
pkg/arch/se.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-se",
|
||||
"longname": "dupeGuru",
|
||||
"execname": "dupeguru-se",
|
||||
"arch": "all",
|
||||
"iconpath": "/usr/share/dupeguru-se/dgse_logo_128.png"
|
||||
}
|
||||
11
pkg/debian/Makefile
Normal file
11
pkg/debian/Makefile
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
all:
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
touch build_pe_modules.py
|
||||
python3 build_pe_modules.py
|
||||
chmod +x src/run.py
|
||||
cp -R src/ $(CURDIR)/debian/{pkgname}/usr/share/{execname}
|
||||
cp $(CURDIR)/debian/{execname}.desktop $(CURDIR)/debian/{pkgname}/usr/share/applications
|
||||
ln -s /usr/share/{execname}/run.py $(CURDIR)/debian/{pkgname}/usr/bin/{execname}
|
||||
24
pkg/debian/build_pe_modules.py
Normal file
24
pkg/debian/build_pe_modules.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import sys
|
||||
import os
|
||||
import os.path as op
|
||||
import shutil
|
||||
import importlib
|
||||
|
||||
from setuptools import setup, Extension
|
||||
|
||||
sys.path.insert(1, op.abspath('src'))
|
||||
|
||||
from hscommon.build import move_all
|
||||
|
||||
exts = [
|
||||
Extension("_block", [op.join('modules', 'block.c'), op.join('modules', 'common.c')]),
|
||||
Extension("_cache", [op.join('modules', 'cache.c'), op.join('modules', 'common.c')]),
|
||||
Extension("_block_qt", [op.join('modules', 'block_qt.c')]),
|
||||
]
|
||||
setup(
|
||||
script_args = ['build_ext', '--inplace'],
|
||||
ext_modules = exts,
|
||||
)
|
||||
move_all('_block_qt*', op.join('src', 'qt', 'pe'))
|
||||
move_all('_cache*', op.join('src', 'core_pe'))
|
||||
move_all('_block*', op.join('src', 'core_pe'))
|
||||
1
pkg/debian/compat
Normal file
1
pkg/debian/compat
Normal file
@@ -0,0 +1 @@
|
||||
7
|
||||
12
pkg/debian/control
Normal file
12
pkg/debian/control
Normal file
@@ -0,0 +1,12 @@
|
||||
Source: {pkgname}
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Maintainer: Virgil Dupras <hsoft@hardcoded.net>
|
||||
Build-Depends: debhelper (>= 7), python3-dev, python3-setuptools
|
||||
Standards-Version: 3.8.1
|
||||
Homepage: http://www.hardcoded.net
|
||||
|
||||
Package: {pkgname}
|
||||
Architecture: {arch}
|
||||
Depends: python3 (>=3.3), python3-pyqt4
|
||||
Description: {longname}
|
||||
11
pkg/debian/copyright
Normal file
11
pkg/debian/copyright
Normal file
@@ -0,0 +1,11 @@
|
||||
Copyright 2014 Hardcoded Software Inc. (http://www.hardcoded.net)
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of Hardcoded Software Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
* If the source code has been published less than two years ago, any redistribution, in whole or in part, must retain full licensing functionality, without any attempt to change, obscure or in other ways circumvent its intent.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
3
pkg/debian/dirs
Normal file
3
pkg/debian/dirs
Normal file
@@ -0,0 +1,3 @@
|
||||
usr/bin
|
||||
usr/share
|
||||
usr/share/applications
|
||||
8
pkg/debian/dupeguru.desktop
Normal file
8
pkg/debian/dupeguru.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name={longname}
|
||||
Comment=Find duplicate files.
|
||||
Exec={execname}
|
||||
Icon={iconpath}
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
7
pkg/debian/me.json
Normal file
7
pkg/debian/me.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-me",
|
||||
"longname": "dupeGuru Music Edition",
|
||||
"execname": "dupeguru_me",
|
||||
"arch": "all",
|
||||
"iconpath": "/usr/share/dupeguru_me/dgme_logo_128.png"
|
||||
}
|
||||
7
pkg/debian/pe.json
Normal file
7
pkg/debian/pe.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-pe",
|
||||
"longname": "dupeGuru Picture Edition",
|
||||
"execname": "dupeguru_pe",
|
||||
"arch": "any",
|
||||
"iconpath": "/usr/share/dupeguru_pe/dgpe_logo_128.png"
|
||||
}
|
||||
3
pkg/debian/rules
Executable file
3
pkg/debian/rules
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
7
pkg/debian/se.json
Normal file
7
pkg/debian/se.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"pkgname": "dupeguru-se",
|
||||
"longname": "dupeGuru",
|
||||
"execname": "dupeguru_se",
|
||||
"arch": "all",
|
||||
"iconpath": "/usr/share/dupeguru_se/dgse_logo_128.png"
|
||||
}
|
||||
Reference in New Issue
Block a user