Skip to content

Commit 0191000

Browse files
committed
Updated Debian package script
1 parent e6429fa commit 0191000

File tree

9 files changed

+24
-49
lines changed

9 files changed

+24
-49
lines changed

Sources/CoreLock/POSIXTime.swift

-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ internal extension timeval {
2929
let (integerValue, decimalValue) = modf(timeInterval)
3030

3131
let million: Double = 1000000.0
32-
3332
let microseconds = decimalValue * million
34-
3533
self.init(tv_sec: Int(integerValue), tv_usec: POSIXMicroseconds(microseconds))
3634
}
3735

@@ -100,9 +98,7 @@ internal extension tm {
10098
internal func modf(value: Double) -> (Double, Double) {
10199

102100
var integerValue: Double = 0
103-
104101
let decimalValue = modf(value, &integerValue)
105-
106102
return (decimalValue, integerValue)
107103
}
108104

debian/lockd/DEBIAN/control

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Package: lockd
2+
Version: 0.0.1
3+
Architecture: armhf
4+
Essential: no
5+
Section: dev
6+
Priority: required
7+
Depends: clang, python, uuid-dev, libicu-dev, icu-devtools, libedit-dev, libxml2-dev, libsqlite3-dev, swig, libpython-dev, systemtap-sdt-dev, tzdata, rsync
8+
Maintainer: Alsey Coleman Miller
9+
Installed-Size: 90000
10+
Description: Lock Deamon
File renamed without changes.

debian/package.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Package
2+
echo "Copying Debian package files"
3+
rm -rf ./lockd/usr
4+
mkdir ./lockd/usr
5+
mkdir ./lockd/usr/bin
6+
cp -rf ../.build/release/lockd ./lockd/usr/bin/
7+
mkdir ./lockd/usr/lib
8+
mkdir ./lockd/usr/lib/swift
9+
cp -rf ../.build/release/libBluetooth.so ./lockd/usr/lib/swift/
10+
cp -rf ../.build/release/libGATT.so ./lockd/usr/lib/swift/
11+
cp -rf ../.build/release/libTLVCoding.so ./lockd/usr/lib/swift/
12+
13+
echo "Building Debian package"
14+
dpkg-deb -b lockd lockd.deb

debianpackage/build.sh

-13
This file was deleted.

debianpackage/lockd/DEBIAN/control

-10
This file was deleted.

debianpackage/package.sh

-5
This file was deleted.

debianpackage/repo/conf/distributions

-3
This file was deleted.

debianpackage/swift.sh

-14
This file was deleted.

0 commit comments

Comments
 (0)