OSDN Git Service

upg
[joborun/jobcore.git] / opentmpfiles / PKGBUILD-oba
1 # Obarun        : 66 init/supervisor
2 # Maintainer    : Eric Vidal <eric@obarun.org>
3 # Maintainer    : Jean-Michel T.Dydak <jean-michel@obarun.org>
4 # Obarun PkgSrc : url="https://git.obarun.org/pkg/obextra/opentmpfiles"
5 #----------------
6 # Website       : https://git.obarun.org/obdev/opentmpfiles.git
7 #----------------------------------------------------------------------------
8 #--DESCRIPTION---------------------------------------------------------------
9
10 pkgname=(opentmpfiles)
11
12 pkgdesc="Script written in pure POSIX sh to parse and apply tmpfiles.d style file coming from systemd"
13
14 pkgver=0.3.1
15 pkgrel=3
16
17 url="https://git.obarun.org/obdev/opentmpfiles.git"
18
19 track="tag"
20 target="v${pkgver}"
21 source=(
22     "${pkgname}::git+${url}#${track}=${target}"
23     "opentmpfiles.hook"
24 )
25
26 #--BUILD CONFIGURATION-------------------------------------------------------
27
28 makedepends=('git')
29
30 #--BUILD CONTROL-------------------------------------------------------------
31
32 path=(--bindir=/usr/bin)
33
34 #--BUILD---------------------------------------------------------------------
35
36 build() {
37     cd $pkgname
38
39     ./configure "${path[@]}"
40 }
41
42
43 #--PACKAGE-------------------------------------------------------------------
44
45 package() {
46     cd $pkgname
47
48     make DESTDIR="${pkgdir}" install
49
50     install -Dm 0644 ${srcdir}/opentmpfiles.hook ${pkgdir}/usr/share/libalpm/hooks/opentmpfiles.hook
51
52     install -Dm 0644 LICENSE ${pkgdir}/usr/share/${pkgname}/LICENSE
53
54 }
55
56 #--INSTALL CONFIGURATION-----------------------------------------------------
57
58 arch=('x86_64')
59
60 #--SECURITY AND LICENCE------------------------------------------------------
61
62 sha512sums=('SKIP'
63             '27ed59dec6441bc8e462d7f13c8257c97077f6f175048def698fe54f29b4ba3b9ea6833ce4b970431cff2d07031580337957153d5c018ab8f69718bdda357688')
64
65 license=('BSD 2-Clause')