summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0729567929baeb5b5bfc2e9488e2542371dc8414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Tim Yang <protonmail = timdyang>
# Contributor: quomoow <quomoow@gmail.com>

pkgname=pcmanfm-git
pkgver=r1660.be8c60d
pkgrel=1
pkgdesc="Extremely fast and lightweight file manager"
arch=(i686 x86_64)
url=https://lxde.org/
license=(GPL)
depends=(libfm-gtk2 lxmenu-data)
makedepends=(git intltool)
optdepends=('gvfs: mount local and remote drives'
            'xarchiver: manage archives')
provides=(${pkgname%-*})
conflicts=(${pkgname%-*})
source=($pkgname::git+https://github.com/lxde/${pkgname%-*}.git)
sha256sums=(SKIP)

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $pkgname
  ./autogen.sh
}

build() {
  cd $pkgname
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}