desktop/desktop-file-utils/desktop-file-utils.sh

Fri, 15 Nov 2019 20:11:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:11:00 +0100
changeset 1210
422313c3fcbd
parent 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

text/rarian: initial import, closes #2311

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1107
diff changeset
1 #!/bin/sh
636
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=desktop-file-utils
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=0.23
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
1107
7791d3dbfecf vanilla: consolidate licenses and many options
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
21 PKGLICENSE="GPLv20"
636
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="command line utilities for working with desktop entries"
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://www.freedesktop.org/software/$PKGNAME/releases/$PKGNAME-$PKGVERSION.tar.xz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 636
diff changeset
24 PKGDEPENDS="glib"
636
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 : ${CHOST:=$(uname -m)-linux-musl}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CBUILD:=$(uname -m)-linux-musl}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CC:=clang}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CFLAGS:=-O2}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${LDFLAGS:=}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${LIBS:=}
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
32
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 build()
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 {
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 rm -rf $PKGNAME-$PKGVERSION
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 tar xvf $PKGNAME-$PKGVERSION.tar.xz
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 cd $PKGNAME-$PKGVERSION
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 CC="$CC" \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 CFLAGS="$CFLAGS" \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 LDFLAGS="$LDFLAGS" \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 LIBS="$LIBS" \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 ./configure \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 --build=$CBUILD \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 --host=$CHOST \
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 --prefix=
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 make
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 make install DESTDIR=$DESTDIR
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
49
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 cd ..
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 rm -rf $PKGNAME-$PKGVERSION
e9489deb5b00 desktop/desktop-file-utils: initial import, closes #1237
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 }

mercurial