summaryrefslogtreecommitdiff
path: root/pcr/debootstrap-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-03-15 17:19:44 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-03-15 17:20:34 -0300
commit1d3b9610357cd18ece298c293b707f8349928e25 (patch)
treefa71d1a90f50e672ebe02a350187fd714d37f82b /pcr/debootstrap-libre/PKGBUILD
parent0565562365011b28f525926fac9d2d778cb59b49 (diff)
downloadabslibre-1d3b9610357cd18ece298c293b707f8349928e25.tar.gz
abslibre-1d3b9610357cd18ece298c293b707f8349928e25.tar.bz2
abslibre-1d3b9610357cd18ece298c293b707f8349928e25.zip
debootstrap-libre: add rebranded man and move license to licenses folder
Diffstat (limited to 'pcr/debootstrap-libre/PKGBUILD')
-rw-r--r--pcr/debootstrap-libre/PKGBUILD15
1 files changed, 14 insertions, 1 deletions
diff --git a/pcr/debootstrap-libre/PKGBUILD b/pcr/debootstrap-libre/PKGBUILD
index 0f49e4124..298d52ee1 100644
--- a/pcr/debootstrap-libre/PKGBUILD
+++ b/pcr/debootstrap-libre/PKGBUILD
@@ -6,22 +6,27 @@ pkgver=1.0.59
pkgrel=1
pkgdesc="A tool used to create a gNewSense or Trisquel base system from scratch, without requiring the availability of dpkg or apt (Debian support removed)"
arch=('any')
-license=('GPL')
+license=('MIT')
url="http://packages.debian.org/sid/debootstrap"
depends=('wget')
replaces=$_pkgname
conflicts=$_pkgname
provides=$_pkgname=$pkgver
source=("http://ftp.debian.org/debian/pool/main/d/${_pkgname}/${_pkgname}_${pkgver}_all.deb"
+ "${_pkgname}.8.gz"
'gnewsense'
'trisquel')
install="debootstrap.install"
md5sums=('16d5acf9a2676692a57b662975b70170'
+ 'b565d089342b8a7ee35166b5d90825c7'
'13978bdd1d877a0dd2c3c874ecd54f03'
'b020aa8426e70a6024c8e76312c17d78')
package(){
tar -xJf "${srcdir}/data.tar.xz" -C "${pkgdir}/"
+ # remove Debian files
+ rm -v "${pkgdir}/usr/share/doc/debootstrap"/{README,changelog.gz}
+ rm -v "${pkgdir}/usr/share/man/man8/debootstrap.8.gz"
# remove Debian scripts
rm -v "${pkgdir}/usr/share/debootstrap/scripts"/*
# move the executables to /usr/bin
@@ -33,6 +38,14 @@ package(){
# doesn't work with gpg 2.x, patch to point to gpg1v
sed 's/gpgv/gpg1v/g;' -i "${pkgdir}/usr/bin/debootstrap" "${pkgdir}/usr/share/debootstrap/functions"
+ # add rebranded man
+ install -m644 ${_pkgname}.8.gz "${pkgdir}/usr/share/man/man8"
+
+ # move license to licenses folder
+ install -Dm644 "${pkgdir}/usr/share/doc/debootstrap/copyright" \
+ "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ rm -rv "${pkgdir}/usr/share/doc"
+
# add gNewSense script
install -m644 gnewsense "$pkgdir/usr/share/debootstrap/scripts"