diff --git a/aur/dfc/PKGBUILD b/aur/dfc/PKGBUILD new file mode 100644 index 000000000..771303e23 --- /dev/null +++ b/aur/dfc/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Rolinh +pkgname=dfc +pkgver=3.0.1 +pkgrel=1 +pkgdesc="Display file system space usage using graphs and colors" +arch=('x86_64' 'i686') +url="http://projects.gw-computing.net/projects/dfc" +license=('BSD') +depends=('glibc') +makedepends=('cmake') +provides=('dfc') +conflicts=('dfc-git') +source=(http://projects.gw-computing.net/attachments/download/67/${pkgname}-${pkgver}.tar.gz) +install='dfc.install' +md5sums=('bb3452662d43a51eb541c66d6fbad576') + +build() { + cd ${pkgname}-${pkgver} + + cmake . -DPREFIX=/usr -DSYSCONFDIR=/etc -DCMAKE_BUILD_TYPE=RELEASE + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/dfc/dfc.install b/aur/dfc/dfc.install new file mode 100644 index 000000000..2ecf81991 --- /dev/null +++ b/aur/dfc/dfc.install @@ -0,0 +1,7 @@ +post_install() { + echo 'Optional configuration file is located in /etc/xdg/dfc/' + echo 'Copy it to ~/.config/dfc/ (create this folder if necessary) if you want to use it.' +} +post_upgrade() { + post_install +}