-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathPKGBUILD.mingw
92 lines (71 loc) · 2.18 KB
/
PKGBUILD.mingw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Maintainer: Perry Werneck <[email protected]>
# References: https://www.msys2.org/wiki/Creating-Packages/
# Maintainer: Perry Werneck <[email protected]>
# References: https://www.msys2.org/wiki/Creating-Packages/
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2023 Perry Werneck <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
_realname=wmi++
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
source=()
pkgver=1.0
pkgrel=1
pkgdesc="A very simple library written in C++ to execute WMI queries"
url="https://github.com/Thomas-Sparber/wmi"
arch=(i686 x86_64)
license=(MIT)
makedepends=(autoconf automake make ${MINGW_PACKAGE_PREFIX}-gcc)
checkdepends=()
provides=($pkgname)
conflicts=($pkgname)
prepare() {
rm -fr "$srcdir/$pkgname"
ln -snf "$startdir" "$srcdir/$pkgname"
}
build() {
cd $pkgname
make all
}
package() {
cd $pkgname
install \
-Dm644 \
"LICENSE" \
${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
install \
-Dm755 \
wmi.dll \
${pkgdir}${MINGW_PREFIX}/bin/wmi.dll
install \
-Dm755 \
wmi.dll \
${pkgdir}${MINGW_PREFIX}/lib/wmi.dll
install \
-Dm755 \
diaa_sami_comsupp.dll \
${pkgdir}${MINGW_PREFIX}/bin/iaa_sami_comsupp.dll
mkdir -p ${pkgdir}${MINGW_PREFIX}/include/wmi
chmod 755 ${pkgdir}${MINGW_PREFIX}/include/wmi
install \
-Dm755 \
include/* \
${pkgdir}${MINGW_PREFIX}/include/wmi
mkdir -p ${pkgdir}${MINGW_PREFIX}/lib
ar rcs \
${pkgdir}${MINGW_PREFIX}/lib/wmi.static.a \
bin/wmi.o \
bin/wmiresult.o \
diaa_sami_comsupp/bin/diaa_sami_comsupp.o
}