makedeb


debian-unstable-source 0.deb-1


Source list for debian unstable set to low priority, for ocasional use.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for debian-unstable-source.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>

_mirror="deb"
# set mirror, for example:
#_mirror="ftp.de"
pkgname="debian-unstable-source"
pkgver=0."${_mirror}"
pkgrel=1
pkgdesc="Source list for debian unstable set to low priority, for ocasional use."
arch=('all')
license=('many')
depends=('debian-archive-keyring')

prepare() {
  printf "\33[2K\r\033[1;33m%s\033[0m" "Warning:" >&2
  echo "You probably don't want to over do it with this repo"
}

package() {
  cd "${srcdir}"

  install -m755 -d "${pkgdir}/etc/apt/"{sources.list.d,preferences.d}

  echo "# Unstable set to low priority

# main
Package: *
Pin: release a=unstable,c=main
Pin-Priority: 50

# contrib
Package: *
Pin: release a=unstable,c=contrib
Pin-Priority: 50

# non-free
Package: *
Pin: release a=unstable,c=non-free
Pin-Priority: 50

# non-free-firmware
Package: *
Pin: release a=unstable,c=non-free-firmware
Pin-Priority: 50" > "${pkgdir}/etc/apt/preferences.d/99debian_unstable"
  echo "deb http://${_mirror}.debian.org/debian unstable main contrib non-free non-free-firmware
#deb-src http://${_mirror}.debian.org/debian unstable main contrib non-free non-free-firmware" > "${pkgdir}/etc/apt/sources.list.d/debian_unstable.list"
}