[arch-commits] Commit in racket/trunk (PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Tue Jan 22 23:54:09 UTC 2019
Date: Tuesday, January 22, 2019 @ 23:54:08
Author: kkeen
Revision: 427061
upgpkg: racket 7.1-1 also FS#60413
Modified:
racket/trunk/PKGBUILD
----------+
PKGBUILD | 59 +++++++++++++++++++++++------------------------------------
1 file changed, 23 insertions(+), 36 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-22 23:46:22 UTC (rev 427060)
+++ PKGBUILD 2019-01-22 23:54:08 UTC (rev 427061)
@@ -2,8 +2,8 @@
# Contributor: Eric Bélanger <eric at archlinux.org>
pkgbase=racket
-pkgname=(racket racket-docs racket-minimal)
-pkgver=7.0
+pkgname=(racket racket-minimal)
+pkgver=7.1
pkgrel=1
pkgdesc="A full-spectrum language with DrRacket IDE. Formerly known as PLT Scheme."
arch=('x86_64')
@@ -12,17 +12,19 @@
depends=('gtk3')
makedepends=('gsfonts' 'sqlite')
options=('!strip' '!emptydirs')
+conflicts=('racket-docs')
+replaces=('racket-docs')
source=("http://download.racket-lang.org/installers/${pkgver}/${pkgname}-${pkgver}-src.tgz")
# "https://mirror.racket-lang.org/installers/${pkgver}/racket-minimal-${pkgver}-src.tgz"
-sha1sums=('67bb624f5ae810b4ebf85e8f3acfaeda9c95d66e')
+sha1sums=('2277a2fc65c5376d0a45eb8b1ad93ae7ef88e437')
prepare() {
- cd "${pkgbase}-${pkgver}"
+ cd "$pkgbase-$pkgver"
echo "Icon=drracket" >> share/pkgs/drracket/drracket/drracket.desktop
}
build() {
- cd "${pkgbase}-${pkgver}/src"
+ cd "$pkgbase-$pkgver/src"
[ "$CARCH" == "x86_64" ] && export CFLAGS+=" -fPIC"
./configure --prefix=/usr --sysconfdir=/etc --enable-shared
make
@@ -29,47 +31,30 @@
}
package_racket() {
- cd "${pkgbase}-${pkgver}/src"
- make DESTDIR="${pkgdir}" install
- install -Dm644 COPYING-libscheme.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$pkgbase-$pkgver/src"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING-libscheme.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm644 ../share/pkgs/drracket/drracket/drracket.desktop "${pkgdir}/usr/share/applications/drracket.desktop"
- install -d "${pkgdir}"/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps
- ln -s /usr/share/racket/pkgs/icons/plt-16x16.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/drracket.png"
- ln -s /usr/share/racket/pkgs/icons/plt-32x32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/drracket.png"
- ln -s /usr/share/racket/pkgs/icons/plt-48x48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/drracket.png"
- ln -s /usr/share/racket/pkgs/icons/plt-logo-red-diffuse.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/drracket.png"
-
- # sloppy
- find "${pkgdir}/usr/share/doc/" -delete
+ install -Dm644 ../share/pkgs/drracket/drracket/drracket.desktop "$pkgdir/usr/share/applications/drracket.desktop"
+ install -d "$pkgdir"/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps
+ ln -s /usr/share/racket/pkgs/icons/plt-16x16.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/drracket.png"
+ ln -s /usr/share/racket/pkgs/icons/plt-32x32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/drracket.png"
+ ln -s /usr/share/racket/pkgs/icons/plt-48x48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/drracket.png"
+ ln -s /usr/share/racket/pkgs/icons/plt-logo-red-diffuse.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/drracket.png"
}
-package_racket-docs() {
- pkgdesc="Docs for the full-spectrum language formerly known as PLT Scheme."
- # grumble grumble this should be possible
- #arch=('any')
- depends=()
- cd "${pkgbase}-${pkgver}/src"
- # there is an "install-html" target
- # but it doesn't do anything with /usr/share/docs
- make DESTDIR="${pkgdir}" install
- find "$pkgdir" -not -regex '.*share/doc.*' \
- -not -name 'share' -not -name 'usr' -not -name 'racket-docs' -delete
-
- install -Dm644 COPYING-libscheme.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
package_racket-minimal() {
- pkgdesc="Minimal Racket installation, without DrRacket."
+ pkgdesc="Minimal Racket installation, without DrRacket/docs."
depends=('libffi')
conflicts=('racket')
provides=('racket')
+ replaces=()
# The -minimal tarball uses the SAME extract path.
# 99% identical sources anyway, manually apply the difference.
# Thankfully these builds happen in the given order
# so we can save some time and reuse the previous build.
- cd "${pkgbase}-${pkgver}"
+ cd "$pkgbase-$pkgver"
echo '((root "pkgs/racket-lib"))' > share/links.rktd
_libhash=$(grep -oP '\("racket-lib".*?#f\)\)' share/pkgs/pkgs.rktd)
echo "#hash($_libhash)" > share/pkgs/pkgs.rktd
@@ -79,7 +64,9 @@
make DESTDIR="${pkgdir}" install
- find "${pkgdir}/usr/share/doc/" -delete
+ find "$pkgdir/usr/share/doc/" -delete
+ install -d "$pkgdir/usr/share/doc/racket/"
+ touch "$pkgdir/usr/share/doc/racket/docindex.sqlite" # FS#60413
- install -Dm644 COPYING-libscheme.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 COPYING-libscheme.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list