| 1 |
#!/usr/bin/make -f
|
| 2 |
|
| 3 |
include /usr/share/cdbs/1/rules/debhelper.mk
|
| 4 |
include /usr/share/cdbs/1/rules/dpatch.mk
|
| 5 |
|
| 6 |
install/gspca-source::
|
| 7 |
# Enforce executable bit on debian/rules, and create
|
| 8 |
# directory structure for modules source
|
| 9 |
install -D -m 0755 debian/rules.modules \
|
| 10 |
debian/tmp/modules/gspca/debian/rules
|
| 11 |
|
| 12 |
# Prepare the other debian stuff
|
| 13 |
for f in *.modules.in control compat copyright changelog; do \
|
| 14 |
install -m 0644 debian/$$f \
|
| 15 |
debian/tmp/modules/gspca/debian/; \
|
| 16 |
done
|
| 17 |
|
| 18 |
# Prepare upstream source
|
| 19 |
find . -path ./debian/\* -type d -prune -o -printf "%P\n" | \
|
| 20 |
egrep -v 'debian|*.err' | \
|
| 21 |
cpio -admp debian/tmp/modules/gspca/
|
| 22 |
|
| 23 |
# Prepare the debian source tarball
|
| 24 |
tar jcf debian/gspca-source/usr/src/gspca-source.tar.bz2 \
|
| 25 |
-C debian/tmp modules
|