PKGBUILD 1.17 KB
Newer Older
1 2
# Maintainer:   H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
Phil's avatar
Phil committed
3

totte's avatar
totte committed
4
# Include global configuration
Phil's avatar
Phil committed
5 6 7 8 9
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf

pkgname=kdegraphics-libksane
_pkgname=libksane
pkgver=${_kdever}
totte's avatar
totte committed
10
pkgrel=1
totte's avatar
totte committed
11
pkgdesc='SANE library interface for KDE'
Manuel's avatar
Cleanup  
Manuel committed
12
arch=('x86_64')
totte's avatar
totte committed
13 14 15 16
url='https://projects.kde.org/projects/kde/kdegraphics/libs/libksane'
license=('GPL'
         'LGPL'
         'FDL')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
17
depends=("kdelibs>=${_libsver}"
totte's avatar
totte committed
18 19 20 21 22 23
         'sane')
makedepends=('cmake'
             'automoc4')
groups=('kde'
        'kdegraphics'
        'kde-uninstall')
Phil's avatar
Phil committed
24
provides=('libksane')
totte's avatar
totte committed
25 26 27 28
options=('docs'
         '!header'
         'debug'
         'log')
29 30
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz  ../checksums.txt | cut -d " " -f1`)
Phil's avatar
Phil committed
31

philm's avatar
philm committed
32
build() {
totte's avatar
totte committed
33 34 35 36 37 38
    cd ${srcdir}/${_pkgname}-${pkgver}
    cmake . \
        -DCMAKE_BUILD_TYPE=${_build_type} \
        -DCMAKE_INSTALL_PREFIX=${_installprefix} \
        -DCMAKE_SKIP_RPATH=ON \
        -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
Phil's avatar
Phil committed
39 40
}

philm's avatar
philm committed
41
package() {
totte's avatar
totte committed
42 43
    cd ${srcdir}/${_pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install
Phil's avatar
Phil committed
44
}