[arch-commits] Commit in sl/repos/community-staging-x86_64 (3 files)
Brett Cornwall
ainola at gemini.archlinux.org
Thu Feb 3 05:03:38 UTC 2022
Date: Thursday, February 3, 2022 @ 05:03:38
Author: ainola
Revision: 1124059
archrelease: copy trunk to community-staging-x86_64
Added:
sl/repos/community-staging-x86_64/PKGBUILD
(from rev 1124058, sl/trunk/PKGBUILD)
sl/repos/community-staging-x86_64/system_ldflags.patch
(from rev 1124058, sl/trunk/system_ldflags.patch)
Deleted:
sl/repos/community-staging-x86_64/PKGBUILD
----------------------+
PKGBUILD | 75 ++++++++++++++++++++++++++-----------------------
system_ldflags.patch | 17 +++++++++++
2 files changed, 58 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-03 05:01:11 UTC (rev 1124058)
+++ PKGBUILD 2022-02-03 05:03:38 UTC (rev 1124059)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Brett Cornwall <ainola at archlinux.org>
-# Contributor: Jakub Luzny <limoto94 at gmail.com>
-# Contributor: SanskritFritz (gmail)
-
-pkgname=sl
-pkgver=5.05
-pkgrel=1
-pkgdesc='Steam Locomotive runs across your terminal when you type "sl" as you meant to type "ls"'
-arch=('x86_64')
-# The original project: https://github.com/mtoyoda/sl
-# We use a slightly-less dead fork that contains useful patches, such as SIGINT support
-url="https://github.com/eyJhb/sl"
-license=('custom')
-depends=('ncurses')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/eyJhb/sl/archive/$pkgver.tar.gz")
-sha512sums=('4a57737a60c90a1eec2210ce7c28db937b46a5c35006bd1b5ff43d20ef617a004c49c2b2897ebc0fb8c57b6687fe933b2c9834f5800fdc0bf9912e07542a3b30')
-
-build() {
- cd "$srcdir/sl-$pkgver"
-
- cc $CFLAGS -o sl sl.c -lcurses
- gzip -9 -f sl.1
-}
-
-package() {
- cd "$srcdir/sl-$pkgver"
-
- install -Dm 775 sl "$pkgdir/usr/bin/sl"
- install -Dm 644 sl.1.gz "$pkgdir/usr/share/man/man1/sl.1.gz"
- install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: sl/repos/community-staging-x86_64/PKGBUILD (from rev 1124058, sl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-03 05:03:38 UTC (rev 1124059)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Jakub Luzny <limoto94 at gmail.com>
+# Contributor: SanskritFritz (gmail)
+
+pkgname=sl
+pkgver=5.05
+pkgrel=2
+pkgdesc='Steam Locomotive runs across your terminal when you type "sl" as you meant to type "ls"'
+arch=('x86_64')
+# The original project: https://github.com/mtoyoda/sl
+# We use a slightly-less dead fork that contains useful patches, such as SIGINT support
+url="https://github.com/eyJhb/sl"
+license=('custom')
+depends=('ncurses')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/eyJhb/sl/archive/$pkgver.tar.gz"
+ "system_ldflags.patch"
+)
+sha512sums=('4a57737a60c90a1eec2210ce7c28db937b46a5c35006bd1b5ff43d20ef617a004c49c2b2897ebc0fb8c57b6687fe933b2c9834f5800fdc0bf9912e07542a3b30'
+ 'cf4592f1f1b2dfe431e8f993a9395900a6a05e6704ce2be32fddab74de8bede2a82c006b82496e50de3ba3c76bda978947f77f251ec41d9391b4db0479bf60c8')
+
+prepare() {
+ cd "sl-$pkgver"
+ patch < ../system_ldflags.patch
+}
+
+build() {
+ cd "sl-$pkgver"
+
+ make
+ gzip -9 -f sl.1
+}
+
+package() {
+ cd "sl-$pkgver"
+
+ install -Dm 775 sl "$pkgdir/usr/bin/sl"
+ install -Dm 644 sl.1.gz "$pkgdir/usr/share/man/man1/sl.1.gz"
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: sl/repos/community-staging-x86_64/system_ldflags.patch (from rev 1124058, sl/trunk/system_ldflags.patch)
===================================================================
--- system_ldflags.patch (rev 0)
+++ system_ldflags.patch 2022-02-03 05:03:38 UTC (rev 1124059)
@@ -0,0 +1,17 @@
+--- Makefile 2022-02-02 20:30:23.352782993 -0800
++++ Makefile 2022-02-02 20:33:32.503983729 -0800
+@@ -8,11 +8,12 @@
+
+ CC=gcc
+ CFLAGS=-O3 -Wall
++LDFLAGS+=-lncurses
+
+ all: sl
+
+ sl: sl.c sl.h
+- $(CC) $(CFLAGS) -o sl sl.c -lncurses
++ $(CC) $(CFLAGS) -o sl sl.c $(LDFLAGS)
+
+ clean:
+ rm -f sl
+
More information about the arch-commits
mailing list