Package Base Details: berry

Git Clone URL: https://aur.archlinux.org/berry.git (read-only, click to copy)
Submitter: FlashDaggerX
Maintainer: jlervin
Last Packager: jlervin
Votes: 4
Popularity: 0.000001
First Submitted: 2018-08-24 23:12 (UTC)
Last Updated: 2022-10-24 06:31 (UTC)

Packages (1)

Pinned Comments

FlashDaggerX commented on 2018-08-24 23:22 (UTC)

FYI: This isn't my OC. Credits go to JLErvin for this wonderful little Window Manager.

Latest Comments

1 2 Next › Last »

xiota commented on 2023-06-21 05:20 (UTC) (edited on 2023-06-21 05:24 (UTC) by xiota)

This package has several issues that need to be corrected:

  • pkgbase ≠ pkgname. This blocks use of pkgbase berry from being used for a normal berry package. Solution: Convert this into a normal package. Create the -git package with the proper pkgbase/pkgname.

  • -git packages should have a pkgver function that uses git tag and commit info to build the version string, like 0.1.12.r2.gc665902-1.

  • Missing git in madedepends, required to build in clean chroot.
  • Missing provides/conflicts. So -git package can work as drop-in replacement for non-git package.
  • Unusual build/package organization.
  • Missing LICENSE file.

The following PKGBUILD will resolve the above issues for this package. It can be converted into a -git package by appending -git to pkgname. Test built in clean chroot, but I don't know how to use this program, so didn't do any further testing.

_pkgname="berry"
pkgname="$_pkgname"
pkgver=0.1.12
pkgrel=1
pkgdesc="A healthy, bite-sized window manager written over the XLib Library"
url="https://github.com/JLErvin/berry"
arch=('x86_64')
license=('MIT')

depends=(
  'libx11'
  'libxft'
  'libxinerama'
)
makedepends=(
  'gcc'
  'make'
)

source=(berry.desktop)
sha256sums=('e1801d7429f8b0c213cb2026ab56ad3e313dcde033a3db176a94b0ef3daa75a6')

if [ x"$pkgname" == x"$_pkgname" ] ; then
  # normal package
  _pkgsrc="$_pkgname-$pkgver"

  source+=("$_pkgname-$pkgver.tar.gz"::"$url/archive/refs/tags/$pkgver.tar.gz")
  sha256sums+=('d5a5099f90f0bea3fa93ead72b1f4fe8205fe0540743a8cf23f5a0c9971b4cf1')
else
  # git package
  _pkgsrc="$_pkgname"

  makedepends+=('git')

  provides+=("$_pkgname")
  conflicts+=("$_pkgname")

  source+=("$_pkgname"::"git+$url")
  sha256sums+=('SKIP')

  pkgver() {
    cd "$srcdir/$_pkgsrc"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  }
fi

build() {
  cd "$srcdir/$_pkgsrc"

  # These variables are used in the Makefile to create the file directories.
  PREFIX="/usr/local/"
  EXAMPLEPREFIX="/etc/xdg/berry/"

  # Set the variables and install the files.  
  ./configure --prefix=/usr

  # Compile the window manager
  make
}

package() {
  cd "$srcdir/$_pkgsrc"

  make DESTDIR="$pkgdir" install

  # Install the examples (sample configuration files)
  install -vDm0644 -t "$pkgdir/etc/xdg/berry" \
    examples/*

  # Install LICENSE
  install -vDm0644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"

  # Install berry.desktop
  install -vDm0644 "$srcdir/berry.desktop" -t "$pkgdir/usr/share/applications"
}

Vedun commented on 2022-03-16 12:15 (UTC) (edited on 2022-03-16 12:20 (UTC) by Vedun)

Please fix PKGBUILD. Must be :

source=( "git+https://github.com/JLErvin/berry.git" berry.desktop )

earlybird commented on 2022-01-29 09:40 (UTC)

can you add the man part of the build?

man berryc

is not working now

rachejazz commented on 2021-03-11 19:26 (UTC) (edited on 2021-03-11 19:26 (UTC) by rachejazz)

berry-git-git+3dc0a02-1 has the following error:

error: failed to commit transaction (conflicting files)
berry-git: /usr/local/share/man exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

Wasn't this fixed at an earlier version?

focusaurus commented on 2020-08-30 13:15 (UTC)

Version berry-git+3872a74-1 fails to install for me with this error:

install: target '/home/plyons/.cache/yay/berry/pkg/berry-git/usr/share/applications/' is not a directory: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... error making: berry (berry-git)

Here's a public gist that seems to fix it

https://gist.github.com/focusaurus/590904a9bd27ae5d3b005c489f4e9aa1

apropos commented on 2020-04-20 03:35 (UTC) (edited on 2020-04-20 04:17 (UTC) by apropos)

FlashDaggerX, berry doesn't register in my display manager upon installation.

It looks like the line that installs the berry.desktop file got thrown out in the Updated to caf4f33 change a few months ago.

Man pages also seem to be broken, but I'm not sure what PKGBUILD change caused that.

Thanks for maintaining.

lottobingo commented on 2020-02-20 17:58 (UTC)

FlashDaggerX, thank you! It’s working now.

FlashDaggerX commented on 2020-02-20 15:29 (UTC) (edited on 2020-02-20 15:29 (UTC) by FlashDaggerX)

lottobingo, the issue should be fixed now.

My PKGBUILD was attempting to create another manpage directory, that's why the installation failed.

lottobingo commented on 2020-02-20 14:23 (UTC)

Installation fails with the following error message:

error: failed to commit transaction (conflicting files)
berry-git: /usr/local/share/man exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

FlashDaggerX commented on 2019-10-05 01:29 (UTC)

crian, the issue should be fixed now.