File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ # Setup Debian package structure
5
+ mkdir -p package/deb/libdsc-dev/DEBIAN
6
+ mkdir -p package/deb/libdsc-dev/usr/lib
7
+ mkdir -p package/deb/libdsc-dev/usr/include
8
+
9
+ # Copy library files
10
+ cp build/libdsc.so package/deb/libdsc-dev/usr/lib/
11
+ cp -r include/libdsc package/deb/libdsc-dev/usr/include/
12
+
13
+ # Create control file
14
+ cat > package/deb/libdsc-dev/DEBIAN/control << EOF
15
+ Package: libdsc-dev
16
+ Version: ${DEB_VERSION}
17
+ Section: libdevel
18
+ Priority: optional
19
+ Architecture: amd64
20
+ Depends: libc6
21
+ Maintainer: libdsc Team
22
+ Description: Data Structures in C Library - Development files
23
+ A comprehensive collection of data structures implemented in C.
24
+ This package contains the development files.
25
+ EOF
26
+
27
+ # Create Debian package
28
+ cd package/deb
29
+ dpkg-deb --build libdsc-dev
30
+ mv libdsc-dev.deb libdsc_${DEB_VERSION} _amd64.deb
You can’t perform that action at this time.
0 commit comments