|
@@ -1,15 +1,13 @@
|
|
#!/usr/bin/bash
|
|
#!/usr/bin/bash
|
|
|
|
|
|
kernelrelease="${1}"
|
|
kernelrelease="${1}"
|
|
-pkgrevision="${2}"
|
|
|
|
-suffix="${3:+-${3}}"
|
|
|
|
|
|
+suffix="${2:+-${2}}"
|
|
|
|
|
|
distribution="unstable"
|
|
distribution="unstable"
|
|
debarch="amd64"
|
|
debarch="amd64"
|
|
debcompat="10"
|
|
debcompat="10"
|
|
sourcename="linux-surface${suffix}"
|
|
sourcename="linux-surface${suffix}"
|
|
maintainer="surfacebot <surfacebot@users.noreply.github.com>"
|
|
maintainer="surfacebot <surfacebot@users.noreply.github.com>"
|
|
-pkgversion="${kernelrelease}-${pkgrevision}"
|
|
|
|
|
|
|
|
image_pkgname="linux-image-surface${suffix}"
|
|
image_pkgname="linux-image-surface${suffix}"
|
|
image_pkgname_actual="linux-image-${kernelrelease}"
|
|
image_pkgname_actual="linux-image-${kernelrelease}"
|
|
@@ -28,7 +26,7 @@ echo "${debarch}" > "debian/arch"
|
|
echo "${debcompat}" > "debian/compat"
|
|
echo "${debcompat}" > "debian/compat"
|
|
|
|
|
|
cat <<EOF > "debian/changelog"
|
|
cat <<EOF > "debian/changelog"
|
|
-${sourcename} (${pkgversion}) ${distribution}; urgency=medium
|
|
|
|
|
|
+${sourcename} (${kernelrelease}) ${distribution}; urgency=medium
|
|
|
|
|
|
* Linux kernel for Microsoft Surface devices.
|
|
* Linux kernel for Microsoft Surface devices.
|
|
|
|
|
|
@@ -44,14 +42,14 @@ Homepage: https://github.com/linux-surface/linux-surface
|
|
|
|
|
|
Package: ${image_pkgname}
|
|
Package: ${image_pkgname}
|
|
Architecture: ${debarch}
|
|
Architecture: ${debarch}
|
|
-Depends: ${image_pkgname_actual} (= ${pkgversion})
|
|
|
|
|
|
+Depends: ${image_pkgname_actual} (= ${kernelrelease})
|
|
Recommends: ${recommends}
|
|
Recommends: ${recommends}
|
|
Description:
|
|
Description:
|
|
Meta-package for linux-surface kernel images.
|
|
Meta-package for linux-surface kernel images.
|
|
|
|
|
|
Package: ${headers_pkgname}
|
|
Package: ${headers_pkgname}
|
|
Architecture: ${debarch}
|
|
Architecture: ${debarch}
|
|
-Depends: ${headers_pkgname_actual} (= ${pkgversion})
|
|
|
|
|
|
+Depends: ${headers_pkgname_actual} (= ${kernelrelease})
|
|
Description:
|
|
Description:
|
|
Meta-package for linux-surface headers.
|
|
Meta-package for linux-surface headers.
|
|
EOF
|
|
EOF
|