1# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
2# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
3pkgname=mkrundir
4pkgver=1.0.0
5pkgrel=1
6pkgdesc="A simple SUID binary for creating an XDG_RUNTIME_DIR"
7url="https://github.com/nmeum/aports/tree/master/8pit/mkrundir"
8arch="all"
9license="0BSD"
10source="mkrundir.c"
11options="suid !check"
12builddir="$srcdir"
13
14build() {
15 "${CC:-gcc}" -Wall -Wextra -Wpedantic \
16 -DRUNTIME_DIR_PREFIX='"/run/user-"' \
17 $CFLAGS $LDFLAGS -o mkrundir mkrundir.c
18}
19
20package() {
21 install -o root -g root -Dm4755 \
22 mkrundir "$pkgdir"/usr/bin/mkrundir
23}
24
25sha512sums="
2698ee984883bb5ed037187e25f968836a31ffb39d46320745b8dc6ef3f1bc4dc64df25dbd5a583b8a4a31ba85a7b861ced2e6b57ed35afe28c0e022c28112f5b2 mkrundir.c
27"