Package Details: tiramisu-git r59.3b30a0f-2

Git Clone URL: https://aur.archlinux.org/tiramisu-git.git (read-only, click to copy)
Package Base: tiramisu-git
Description: Desktop notifications, the UNIX way
Upstream URL: https://github.com/Sweets/tiramisu
Licenses: MIT
Submitter: OmegaDungeon
Maintainer: OmegaDungeon
Last Packager: OmegaDungeon
Votes: 1
Popularity: 0.000846
First Submitted: 2020-06-24 11:44
Last Updated: 2020-07-07 03:46

Required by (0)

Sources (1)

Latest Comments

Kr1ss commented on 2020-07-07 17:12

Thx both of you !

OmegaDungeon commented on 2020-07-07 03:48

Thank you @Kr1ss and @Ordoviz, I've merged in the patch that Ordoviz provided.

Ordoviz commented on 2020-07-05 16:08

I am here to let you know that you can run namcap on packages generated with makepkg. This will give you more results than namcap PKGBUILD. In this case the output is:

tiramisu-git W: ELF file ('usr/bin/tiramisu') lacks FULL RELRO, check LDFLAGS.
tiramisu-git E: Missing custom license directory (usr/share/licenses/tiramisu-git)
tiramisu-git W: Unused shared library '/usr/lib/libgobject-2.0.so.0' by file ('usr/bin/tiramisu')
tiramisu-git W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/bin/tiramisu')
tiramisu-git W: Dependency glibc included but already satisfied
tiramisu-git W: Dependency zlib included but already satisfied
tiramisu-git W: Dependency libutil-linux included but already satisfied
tiramisu-git W: Dependency libffi included but already satisfied
tiramisu-git W: Dependency pcre included but already satisfied

As you can see, many dependencies are not needed because glib2 already depends on them.

Try this patch:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ makedepends=("git")
 arch=('x86_64')
 url="https://github.com/Sweets/tiramisu"
 license=('MIT')
-depends=('glib2' 'glibc' 'zlib' 'libutil-linux' 'libffi' 'pcre')
+depends=('glib2')
 source=('tiramisu::git://github.com/Sweets/tiramisu.git')
 md5sums=('SKIP')

@@ -25,5 +25,6 @@ build() {
 package() {
    cd "$_pkgname"
    install -Dm755 ./tiramisu "$pkgdir/usr/bin/tiramisu"
-   install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
+   install -Dm644 ./README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+   install -Dm644 ./LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }

The patch brings the namcap output down to this:

tiramisu-git W: ELF file ('usr/bin/tiramisu') lacks FULL RELRO, check LDFLAGS.
tiramisu-git W: Unused shared library '/usr/lib/libgobject-2.0.so.0' by file ('usr/bin/tiramisu')
tiramisu-git W: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/bin/tiramisu')

The first warning is an upstream issue, see https://github.com/Sweets/tiramisu/pull/9.

Kr1ss commented on 2020-07-04 13:45

Thx for packaging & maintaining @OmegaDumgeon.

The readme file is being installed to /usr/share/doc/tiramisu-git, rather than /usr/share/doc/tiramisu/README.md.

Also, the MIT license is not included in the [core]/licenses package, so the license file should be included with the package (see the first bullet point of this Wiki paragraph).

Would u pls consider to apply something like the following patch :

diff -ru old/PKGBUILD new/PKGBUILD
--- old/PKGBUILD    2020-07-04 15:39:19.942015927 +0200
+++ new/PKGBUILD    2020-07-04 15:44:22.802033498 +0200
@@ -25,5 +25,6 @@
 package() {
    cd "$_pkgname"
    install -Dm755 ./tiramisu "$pkgdir/usr/bin/tiramisu"
-   install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
+   install -Dm644 ./README.md -t"$pkgdir/usr/share/doc/$_pkgname/"
+   install -Dm644 ./LICENSE -t"$pkgdir/usr/share/licenses/$_pkgname/"
}

Thx, Cheers !