Skip to content

Commit

Permalink
user/bulky: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
EarldridgeJazzedPineda committed Oct 28, 2024
1 parent a3d2512 commit 40f6ebd
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
12 changes: 12 additions & 0 deletions user/bulky/patches/use-chimera-gpl-license-file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ru a/usr/lib/bulky/bulky.py b/usr/lib/bulky/bulky.py
--- a/usr/lib/bulky/bulky.py 2024-07-21 17:26:01.000000000 +0800
+++ b/usr/lib/bulky/bulky.py 2024-09-06 20:17:54.321978118 +0800
@@ -393,7 +393,7 @@
dlg.set_program_name("Bulky")
dlg.set_comments(_("Rename Files"))
try:
- h = open('/usr/share/common-licenses/GPL', encoding="utf-8")
+ h = open('/usr/share/licenses/GPL-3', encoding="utf-8")
s = h.readlines()
gpl = ""
for line in s:
7 changes: 7 additions & 0 deletions user/bulky/patches/use-sh-shebang.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diff -ru a/usr/bin/bulky b/usr/bin/bulky
--- a/usr/bin/bulky 2024-07-21 17:26:01.000000000 +0800
+++ b/usr/bin/bulky 2024-09-10 11:45:49.044165427 +0800
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/bin/sh
/usr/lib/bulky/bulky.py "$@" &
18 changes: 18 additions & 0 deletions user/bulky/patches/use-version-file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/usr/lib/bulky/bulky.py b/usr/lib/bulky/bulky.py
index 5e01644..54bb550 100755
--- a/usr/lib/bulky/bulky.py
+++ b/usr/lib/bulky/bulky.py
@@ -403,7 +403,12 @@ class MainWindow():
except Exception as e:
print (e)

- dlg.set_version("__DEB_VERSION__")
+ try:
+ verfile = open("/usr/share/bulky/version", "r")
+ dlg.set_version(verfile.read())
+ verfile.close()
+ except Exception as e:
+ print (e)
dlg.set_icon_name("bulky")
dlg.set_logo_icon_name("bulky")
dlg.set_website("https://www.github.com/linuxmint/bulky")
26 changes: 26 additions & 0 deletions user/bulky/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pkgname = "bulky"
pkgver = "3.4"
pkgrel = 0
build_style = "makefile"
hostmakedepends = ["gettext"]
depends = [
"base-files-doc",
"gtk+3",
"python-gobject",
"python-magic",
"python-setproctitle",
]
pkgdesc = "Bulk renamer"
maintainer = "Earldridge Jazzed Pineda <earldridgejazzedpineda@gmail.com>"
license = "GPL-3.0-or-later"
url = "https://projects.linuxmint.com/xapps"
source = f"https://github.com/linuxmint/bulky/archive/refs/tags/{pkgver}.tar.gz"
sha256 = "dd3350ccb98ce1b1f3df67151ca091430df67e41f19162a415550ef8ebd67c45"
# Test script requires write access to the cbuild container's root
options = ["!check"]


def install(self):
self.install_files("usr", "")
with open(self.destdir / "usr/share/bulky/version", "w") as verfile:
verfile.write(self.pkgver)

0 comments on commit 40f6ebd

Please sign in to comment.