Skip to content

Commit 544d754

Browse files
committed
shutdown: Add 2.0.0
cygwin shotdown utils Fixes #1208
1 parent 3be4f51 commit 544d754

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

shutdown/PKGBUILD

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Maintainer: Christoph Reiter <[email protected]>
2+
3+
pkgname=shutdown
4+
pkgver=2.0.0
5+
pkgrel=1
6+
pkgdesc="Shutdown, reboot, hibernate or suspend the machine"
7+
arch=('i686' 'x86_64')
8+
url="https://cygwin.com/git/?p=cygwin-apps/shutdown.git"
9+
makedepends=(
10+
'git'
11+
'gcc'
12+
'make'
13+
)
14+
msys2_repository_url="https://cygwin.com/git/?p=cygwin-apps/shutdown.git"
15+
msys2_references=(
16+
'cygwin: shutdown'
17+
)
18+
license=('spdx:GPL-3.0-or-later')
19+
_tag="v2.0.0-2"
20+
source=("git+https://cygwin.com/git/cygwin-apps/shutdown.git#tag=$_tag")
21+
sha256sums=('c2259165b66f77ab633b464693aeadfbd6849df717136ba213ff01d286125503')
22+
23+
build () {
24+
mkdir "build-${CHOST}" && cd "build-${CHOST}"
25+
26+
make -f "../${pkgname}"/Makefile SRCDIR="../${pkgname}"
27+
}
28+
29+
package () {
30+
cd "build-${CHOST}"
31+
32+
make install -f ../"${pkgname}"/Makefile \
33+
SRCDIR=../"${pkgname}" \
34+
DESTDIR="${pkgdir}"
35+
}

0 commit comments

Comments
 (0)