# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xdg-user-dirs
version=0.17
build=1sml
homepage="https://www.freedesktop.org/wiki/Software/xdg-user-dirs"
download="http://user-dirs.freedesktop.org/releases/xdg-user-dirs-$version.tar.gz"
desc="Manage user directories like ~/Desktop and ~/Music"
requires="musl docbook"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --sysconfdir=/etc \
    --disable-documentation

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
fe7e34664183e2ce03c77a69155106f2127149f23b03941e8f626b211f74b09fb44ee31e73b7dea2f395b0d86b6654fb3a933442b3703cadd90e42d16d198c9d  xdg-user-dirs-0.17.tar.lz
"
