blob: 52d3bd002488037c75eac0c6a35db05f21d87a1f (
plain)
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
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Matsaa93 <matsaa93@gmail.com>
pkgname=uni-sync-bin
_pkgname=uni-sync
pkgver=0.3.1
pkgrel=2
#pkgver() {
# cd "${_sourceName}"
# git describe --tags | sed 's/^v//'
#}
pkgdesc="Uni-Sync : A Synchronization Tool for Lian Li Fan Controllers"
arch=("any")
url="https://github.com/EightB1ts/uni-sync.git"
license=('MIT')
#groups=()
depends=("systemd-libs" "libudev0-shim" "hidapi" "libusb")
makedepends=("git"
"rust")
checkdepends=()
#optdepends=('to enable uni-sync: systemctl enable uni-sync && sudo systemctl restart uni-sync')
provides=("${_pkgname}")
#conflicts=()
#replaces=()
#backup=()
options=(!strip)
#install=
#changelog=
source_x86_64=(uni-sync-bin.tar.xz::https://github.com/matsaa93/AUR-uni-sync-bin/releases/download/$pkgver/uni-sync-bin.tar.xz)
validpgpkeys=(A90CF879EC922C4751F26A61258971F7992C02F6)
source=("LICENSE")
noextract=()
sha256sums=('c8fe62ed278d3c8b6e9ab88c9e5b5d8db131a65b2040eb0f6e38e25b8f0fc6c9')
sha256sums_x86_64=('a2d6414004a994df2af8a0924db323c1200676a3e00e1ef3b4ba5288fc638e5d')
validpgpkeys=()
#pkgver() {
# cd $srcdir/${_pkgname}
# printf "0.3.1r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#}
#prepare() {
# cd "$srcdir"
# patch -u ${_pkgname}/uni-sync.service -i "uni-sync.service.patch"
#}
#build() {
# cd "$srcdir/${_pkgname}"
# cargo build --release
# mv target/release/uni-sync .
# rm -rf ./target
# #./configure --prefix=/usr
# #make
#}
#check() {
# cd "$pkgname-$pkgver"
# make -k check
#}
package() {
cd "$srcdir"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 ${_pkgname}.service "${pkgdir}/etc/systemd/system/${_pkgname}.service"
install -Dm755 ${_pkgname}.json "${pkgdir}/etc/uni-sync/${_pkgname}.json"
install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
#make DESTDIR="$pkgdir/" install
}
|