summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ec18d553485642fbbf2b9fe9fd340023c1ecb19 (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
# Maintainer: Israel Roldan <israel.alberto.rv@gmail.com>
# Contributor: Simon Legner <Simon.Legner@gmail.com>
# Contributor: beest <gnubeest@gmail.com>

pkgname="duc"
pkgver=1.4.6
pkgrel=2
pkgdesc="A library and suite of tools for inspecting disk usage"
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://duc.zevv.nl/"
license=('LGPL-3.0-only')
depends=('cairo' 'pango' 'leveldb' 'ncurses' 'libx11' 'glib2' 'glibc')
makedepends=('pkgconf')
source=("https://github.com/zevv/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
validpgpkeys=('F042F5CDB0A6EC6ACB80A829CACDA4B54202FA2F') # Ico Doornekamp
sha512sums=('4d866a8bcd3d6659354f7d12d65e89c28f3fa670625cf391cbc005db0a09c62daf6e374acfac3f53c73f8f69c6b910606ce04c8c6d370824aa254adce73ffa17')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    # Note: We are keeping LevelDB for compatibility with the previous version.
    # If you decide to migrate to SQLite, change the dep and flag here.
    ./configure --prefix="/usr" --with-db-backend="leveldb"
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}/" install

    # Explicit license installation
    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}