diff options
author | Federico Di Pierro | 2019-01-21 21:20:09 +0100 |
---|---|---|
committer | Federico Di Pierro | 2019-01-21 21:20:09 +0100 |
commit | 402349e02f00ec95287cab9908101456bb4cb594 (patch) | |
tree | f8351cbf2109f22dd88e96360d369650cfdb2200 /PKGBUILD | |
parent | 8ba077ce7bc1e480989cba27e2f470084da76c56 (diff) | |
download | aur-402349e02f00ec95287cab9908101456bb4cb594.tar.gz |
Updated to cmake.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 20 insertions, 10 deletions
@@ -2,23 +2,21 @@ pkgname=ncursesfm-git _gitname=ncursesFM -pkgver=v3.1.r2.gc146848 -pkgrel=1 +pkgver=v3.1.r37.gd823532 +pkgrel=2 pkgdesc="A FileManager written in c and ncurses library." arch=('i686' 'x86_64') url="https://github.com/FedeDP/${_gitname}" license=('GPL') -depends=('ncurses' 'libconfig' 'libarchive' 'glibc' 'libcups' 'libx11' 'systemd') +depends=('ncurses' 'libconfig' 'libarchive' 'glibc' 'libcups' 'systemd' 'libnotify') optdepends=('xdg-utils: xdg-open support' 'udisks2: mountable drives and ISO mount support' 'packagekit: package installation support' 'upower: AC (dis)connection events support') -# libcups, libconfig and libx11 are optional build dep. +# libcups and libnotify are optional build dep. # If compiled without them, the program will run just fine; -# but that would disable xdg-open, config file read and printing support. -# systemd too is an optdep. But in arch libudev is packaged together with it, -# and libudev is a mandatory dep. -makedepends=('git' 'bash-completion') +# but that would disable desktop notifications and printing support. +makedepends=('git' 'bash-completion' 'cmake') source=("git://github.com/FedeDP/${_gitname}.git") backup=('etc/default/ncursesFM.conf') install=ncursesFM.install @@ -29,12 +27,24 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "${srcdir}/${_gitname}" + mkdir -p build +} + build() { - cd $srcdir/$_gitname + cd "${srcdir}/${_gitname}/build" + cmake \ + -G "Unix Makefiles" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DENABLE_CUPS=true \ + -DENABLE_NOTIFY=true \ + .. make } package() { - cd $srcdir/$_gitname + cd "${srcdir}/${_gitname}/build" make DESTDIR="$pkgdir" install } |