39 lines
1.5 KiB
Bash
39 lines
1.5 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2026 Luis Guzman <ark@switnet.org>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
VERSION=1
|
|
EXTERNAL='deb-src http://deb.debian.org/debian trixie-backports main'
|
|
REPOKEY=6ED0E7B82643E131
|
|
BACKPORTS=true
|
|
BUILD_UNTIL=12.0
|
|
|
|
. ./config
|
|
|
|
# Set custom rustc/cargo versions
|
|
sed -i '/rustc/s/,/| rustc-1.84,/' debian/control
|
|
sed -i '/cargo/s/,/| cargo-1.84,/' debian/control
|
|
|
|
sed -i '/export DEB_BUILD_MAINT_OPTIONS/i \\n' debian/rules
|
|
sed -i '/export DEB_BUILD_MAINT_OPTIONS/i # Trisquel custom rustc/cargo version variables' debian/rules
|
|
sed -i '/export DEB_BUILD_MAINT_OPTIONS/i export RUSTC=/usr/bin/rustc-1.84' debian/rules
|
|
sed -i '/export DEB_BUILD_MAINT_OPTIONS/i export CARGO=/usr/bin/cargo-1.84' debian/rules
|
|
sed -i '/export DEB_BUILD_MAINT_OPTIONS/i \\n' debian/rules
|
|
|
|
changelog "Backport the latest stable and usable 0ad release from Trixie"
|
|
|
|
package
|