Skip to content

Commit 785096d

Browse files
committed
Update Debian packaging script
1 parent c15f306 commit 785096d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

scripts/debian.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)