forked from rox-desktop/rox-filer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
PKGBUILD
50 lines (43 loc) · 1.58 KB
/
PKGBUILD
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
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: jun7 <[email protected]>
# Contributor: tobias <[email protected]>
# Contributor: Jochem Kossen <[email protected]>
pkgname=rox-filer-hugeicons
pkgver=2.11.h
pkgrel=2
branch=stable
pkgdesc="A fork of rox-filer having 64 - 512px icons"
arch=('i686' 'x86_64')
conflicts=('rox')
provides=('rox')
license=('GPL')
url="https://github.com/jun7/rox-filer"
depends=('sh' 'libsm' 'gtk2')
makedepends=('libxslt' 'git')
source=("git+https://github.com/jun7/rox-filer.git#branch=$branch")
md5sums=('SKIP')
pkgver(){
cd "$srcdir/rox-filer"
printf "2.11.h.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/rox-filer"
git pull --rebase origin $branch
}
build() {
cd "$srcdir/rox-filer"
./ROX-Filer/AppRun --compile LIBS="-ldl -lm"
xsltproc -o rox.1 "$srcdir/rox-filer/ROX-Filer/src/Docs/to_man.xsl" "$srcdir/rox-filer/ROX-Filer/src/Docs/Manual.xml"
}
package() {
cd "$srcdir/rox-filer"
install -d "$pkgdir/usr/share/Choices/MIME-types"
install -m755 Choices/MIME-types/* "$pkgdir/usr/share/Choices/MIME-types/"
cp -rp ROX-Filer "$pkgdir/usr/share/"
rm -fr "$pkgdir"/usr/share/ROX-Filer/{src,build}
install -Dm755 "$srcdir/rox-filer/rox.sh" "$pkgdir/usr/bin/rox"
install -Dm644 rox.1 "$pkgdir/usr/share/man/man1/rox.1"
ln -sf rox.1 "$pkgdir/usr/share/man/man1/ROX-Filer.1"
install -Dm644 "$srcdir/rox-filer/rox.desktop" "$pkgdir/usr/share/applications/rox.desktop"
install -Dm644 "$srcdir/rox-filer/rox.svg" "$pkgdir/usr/share/pixmaps/rox.svg"
install -Dm644 "$srcdir/rox-filer/ROX-Filer/.DirIcon" "$pkgdir/usr/share/pixmaps/rox.png"
}