forked from dimkr/literocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
49 lines (42 loc) · 1.45 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
# Maintainer: jun7 <jun7@hush.com>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl>
pkgname=literocks
pkgver=2.11.l
pkgrel=1
branch=master
pkgdesc="A fork of rox-filer having no desktop features, just a filer"
arch=('i686' 'x86_64')
conflicts=('literocks')
provides=('literocks')
license=('GPL')
url="https://github.com/jun7/literocks"
depends=('gtk2')
optdepends=('ffmpegthumbnailer: for thumnails of video/*')
makedepends=('libxslt' 'git')
source=("git+https://github.com/jun7/literocks.git#branch=$branch")
md5sums=('SKIP')
pkgver(){
cd "$srcdir/literocks"
printf "2.11.h.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/literocks"
git pull --rebase origin $branch
}
build() {
cd "$srcdir/literocks"
./AppRun --compile LIBS="-ldl -lm"
xsltproc -o literocks.1 "$srcdir/literocks/src/Docs/to_man.xsl" "$srcdir/literocks/src/Docs/Manual.xml"
}
package() {
cd "$srcdir/literocks"
install -d "$pkgdir/usr/share"
cp -rp ../literocks "$pkgdir/usr/share/literocks/"
rm -fr "$pkgdir"/usr/share/literocks/{src,build,.git}
install -Dm755 literocks.sh "$pkgdir/usr/bin/literocks"
install -Dm644 literocks.1 "$pkgdir/usr/share/man/man1/literocks.1"
ln -sf literocks.1 "$pkgdir/usr/share/man/man1/literocks.1"
install -Dm644 literocks.desktop "$pkgdir/usr/share/applications/literocks.desktop"
install -Dm644 literocks.png "$pkgdir/usr/share/pixmaps/literocks.png"
}