blob: b3ba63c1c39cfd03eaa5305b10fed61e3291e7df (
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
|
pkgname=file-commander-git
pkgver=0.9.3.2.r41.gf33c7b3
pkgrel=1
pkgdesc='Qt-based cross-platform Total Commander-like orthodox file manager for Windows, Mac and Linux'
arch=('i686' 'x86_64')
url="https://github.com/VioletGiraffe/file-commander"
license=('GPL3')
depends=('qt5-base' 'qt5-multimedia' 'hunspell')
makedepends=('qt5-tools')
source=("$pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
cd "$srcdir/$pkgname"
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
qmake PREFIX=/opt/$pkgname
make
}
package() {
cd "$srcdir/$pkgname"
mkdir -p $pkgdir/opt/$pkgname
cp $srcdir/$pkgname/bin/release/* $pkgdir/opt/$pkgname
mkdir -p $pkgdir/usr/bin/
install -Dm755 $pkgdir/opt/$pkgname/FileCommander $pkgdir/usr/bin
}
|