Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libkkc #2022

Closed
wants to merge 2 commits into from
Closed

libkkc #2022

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions contrib/libkkc/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
pkgname = "libkkc"
pkgver = "0.3.5"
pkgrel = 0
build_style = "gnu_configure"
configure_env = {"MAKE": "gmake"}
make_cmd = "gmake"
hostmakedepends = [
"autoconf",
"automake",
"gettext",
"gmake",
"gnome-common",
"gobject-introspection",
"intltool",
"libtool",
"pkgconf",
"vala",
]
makedepends = [
"gettext-devel",
"json-glib-devel",
"libgee-devel",
"marisa-trie-devel",
]
pkgdesc = "Japanese kana-kanji conversion library"
maintainer = "Nasado <[email protected]>"
license = "GPL-3.0-or-later OR custom:libkkc"
url = "https://github.com/ueno/libkkc"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "c106a09480f36b71854f2ffd9e11a4b882e0e2cb4a4a3d16ac472315ea04f797"


def post_install(self):
license_dir = f"usr/share/licenses/{pkgname}"
self.install_file("COPYING", f"{license_dir}/GPL-3.0")

with open("README.md") as f:
readme_lines = f.read().split("\n")
relevant_lines = readme_lines[60:-1]
assert relevant_lines[0] == "GPLv3+"
assert not any(lambda x: x == "```", relevant_lines)
with open("extra-license") as f:
for line in relevant_lines:
f.write(line + "\n")
self.install_file("extra-license", f"{license_dir}/custom")
Comment on lines +33 to +45
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you definitely dont need any of this

1 change: 1 addition & 0 deletions contrib/marisa-trie-devel
1 change: 1 addition & 0 deletions contrib/marisa-trie-progs
33 changes: 33 additions & 0 deletions contrib/marisa-trie/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pkgname = "marisa-trie"
pkgver = "0.2.6"
pkgrel = 0
build_style = "gnu_configure"
configure_args = ["--enable-static"]
make_dir = "."
hostmakedepends = [
"autoconf",
"automake",
"clang",
Comment on lines +8 to +10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"autoconf",
"automake",
"clang",
"automake",

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, just copy the version from #1957 for this, though i think i will add this myself for something else first

"libtool",
"pkgconf",
]
pkgdesc = "Static and space-efficient trie"
maintainer = "Nasado <[email protected]>"
license = "BSD-2-Clause OR LGPL-2.1-or-later"
url = "https://github.com/s-yata/marisa-trie"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de"


def post_install(self):
self.install_license("COPYING.md")


@subpackage(f"{pkgname}-devel")
def _devel(self):
return self.default_devel()


@subpackage(f"{pkgname}-progs")
def _progs(self):
return self.default_progs()
Loading