forked from marvinkreis/rofi-file-browser-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
32 lines (28 loc) · 804 Bytes
/
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
# Maintainer: Marvin Kreis <[email protected]>
pkgname=rofi-file-browser-extended-git
pkgver=1.2.0
pkgrel=1
pkgdesc="Use rofi to quickly open files"
arch=("x86_64")
url="https://github.com/marvinkreis/${pkgname%-git}"
license=("MIT")
depends=("rofi")
makedepends=("git" "cmake")
provides=("rofi-file-browser-extended")
replaces=("rofi-file_browser-extended")
source=("git+https://github.com/marvinkreis/${pkgname%-git}.git")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname%-git}"
cmake .
make
}
package() {
cd "${srcdir}/${pkgname%-git}"
make DESTDIR="${pkgdir}" PREFIX=/usr install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}