Name pcmanfm
Description Extremely fast and lightweight file manager
Version 1.4.0-2
Package Base pcmanfm
Homepage https://github.com/lxde/pcmanfm
Maintainers ['Balló György <ballogyor+arch@gmail.com>', 'Balló György <bgyorgy@archlinux.org>']
Contributors ['Angel Velasquez <angvp@archlinux.org>', 'Bartłomiej Piotrowski <bpiotrowski@archlinux.org>', 'Juergen Hoetzel <juergen@archlinux.org>', 'Unknown47 <unknown47r@gmail.com>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/pcmanfm
Sources ['git+https://github.com/lxde/pcmanfm.git#tag=1.4.0', 'pcmanfm-desktop-onlyshowin.patch', 'pcmanfm-transient-dialog.patch', 'pcmanfm.appdata.xml']
Dependencies ['at-spi2-core', 'cairo', 'gdk-pixbuf2', 'glib2', 'glibc', 'gtk3', 'libfm', 'libfm-gtk3', 'libx11', 'lxmenu-data', 'pango']
Optional-Dependencies ['gvfs', 'xarchiver']
Build-Dependencies ['git', 'intltool']
Provides []
Builddate 21-10-2025 04:53:07
Architecture x86_64
Distro-Version
Licenses ['GPL-2.0-or-later']
Hash 37f846b3b3e83ad362474f3d098c7f2a84f35818a14956496b9942da5327f1e6
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Unknown47 <unknown47r@gmail.com>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>

pkgname=pcmanfm
pkgver=1.4.0
pkgrel=2
pkgdesc='Extremely fast and lightweight file manager'
arch=(x86_64)
url='https://github.com/lxde/pcmanfm'
license=(GPL-2.0-or-later)
groups=(lxde)
depends=(
  at-spi2-core
  cairo
  gdk-pixbuf2
  glib2
  glibc
  gtk3
  libfm
  libfm-gtk3
  libx11
  lxmenu-data
  pango
)
makedepends=(
  git
  intltool
)
optdepends=(
  'gvfs: Trash support, mounting with udisks and remote filesystems'
  'xarchiver: Archive management'
)
conflicts=(pcmanfm-gtk3)
replaces=(pcmanfm-gtk3)
source=(
  "git+https://github.com/lxde/pcmanfm.git#tag=$pkgver"
  pcmanfm.appdata.xml
  pcmanfm-transient-dialog.patch
  pcmanfm-desktop-onlyshowin.patch
)
b2sums=(
  5793db3e6c6c5959a9e7d3923f723c5197fb513f15005d1a709c9c572e3d0af98073d2ce927f9d1198603233ebd7c918504b8fb9878640fd70550dfdf04f8dfd
  4372dadab89cfa22bcc6572149d24afbc53efb5020544266372c69263991a238b0f32f515ee261cf07562ca8abe70df47c2d060f6e6f98bd405e4530f0ab5155
  aa3c1cc99e85169f03c7222ad2fb4e2da355f9e9e0d2bf1bb0fe3dec889f54817be7b805c519347cc528296d4c6d6815c0f7f5a8620d920437e6545b47bab0b2
  f8bee16ce19c945d350a77978a2893407a8b1dcc174623aaad33fa8cb1c5b8fc177127c56522e60850bce58e27cab39a5453f6d7a7ee8d783e3122801123c0cd
)

prepare() {
  cd $pkgname

  # https://github.com/lxde/pcmanfm/pull/32
  git apply -3 ../pcmanfm-transient-dialog.patch

  # https://github.com/lxde/pcmanfm/pull/34
  git apply -3 ../pcmanfm-desktop-onlyshowin.patch

  autoreconf -fi
}

build() {
  cd $pkgname
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --with-gtk=3
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
}