OCaml 4.14.0 rebuild
[arch-packages.git] / xdg-user-dirs / trunk / PKGBUILD
blobc441b0401c0761d74c1f840d4415c1529438451e
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
3 # Contributor:  <mathieu.clabaut@gmail.com>
5 pkgname=xdg-user-dirs
6 pkgver=0.17
7 pkgrel=3
8 pkgdesc="Manage user directories like ~/Desktop and ~/Music"
9 arch=(x86_64)
10 url="https://www.freedesktop.org/wiki/Software/xdg-user-dirs"
11 license=(GPL)
12 depends=(sh systemd)
13 makedepends=(docbook-xsl git)
14 backup=(etc/xdg/user-dirs.conf etc/xdg/user-dirs.defaults)
15 install=xdg-user-dirs.install
16 options=(!emptydirs)
17 _commit=ec015cdd345dec8025948533e7a6f18680e7f70c  # tags/0.17^0
18 source=("git+https://gitlab.freedesktop.org/xdg/xdg-user-dirs.git#commit=$_commit"
19         xdg-user-dirs-update.service)
20 sha256sums=('SKIP'
21             '53c75f52d782e9492601400236bc8e5bfa76a26f0afd9bce3fe8df1740d341f0')
23 pkgver() {
24   cd $pkgname
25   git describe --tags | sed 's/-/+/g'
28 prepare() {
29   cd $pkgname
30   NOCONFIGURE=1 ./autogen.sh
33 build() {
34   cd $pkgname
35   ./configure --prefix=/usr --sysconfdir=/etc
36   make
39 package() {
40   cd $pkgname
41   make DESTDIR="$pkgdir" install 
43   # We use a service
44   rm "$pkgdir/etc/xdg/autostart/xdg-user-dirs.desktop"
45   install -Dt "$pkgdir/usr/lib/systemd/user" -m644 ../xdg-user-dirs-update.service