]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
Add 'st-git/' from commit 'a148393242d40e0d28d5f1216962c543cbcc6b1f'
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 22 Feb 2019 21:43:50 +0000 (22:43 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 22 Feb 2019 21:43:50 +0000 (22:43 +0100)
git-subtree-dir: st-git
git-subtree-mainline: b720d343f3ee3492d8027450a4636dc8a52793e0
git-subtree-split: a148393242d40e0d28d5f1216962c543cbcc6b1f

st-git/.SRCINFO [new file with mode: 0644]
st-git/PKGBUILD [new file with mode: 0644]

diff --git a/st-git/.SRCINFO b/st-git/.SRCINFO
new file mode 100644 (file)
index 0000000..d2bd346
--- /dev/null
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Wed Oct 26 08:45:07 UTC 2016
+pkgbase = st-git
+       pkgdesc = Simple virtual terminal emulator for X
+       pkgver = 0.7.9.g8c99915
+       pkgrel = 1
+       epoch = 1
+       url = http://st.suckless.org/
+       arch = i686
+       arch = x86_64
+       license = MIT
+       makedepends = ncurses
+       makedepends = libxext
+       makedepends = git
+       depends = libxft
+       provides = st
+       conflicts = st
+       options = zipman
+       source = git://git.suckless.org/st
+       sha1sums = SKIP
+
+pkgname = st-git
+
diff --git a/st-git/PKGBUILD b/st-git/PKGBUILD
new file mode 100644 (file)
index 0000000..7d9b4df
--- /dev/null
@@ -0,0 +1,66 @@
+# Maintainer: mar77i <mar77i at mar77i dot ch>
+# Past Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
+
+pkgname=st-git
+_pkgname=st
+pkgver=0.7.9.g8c99915
+pkgrel=1
+pkgdesc='Simple virtual terminal emulator for X'
+url='http://st.suckless.org/'
+arch=('i686' 'x86_64')
+license=('MIT')
+options=('zipman')
+depends=('libxft')
+makedepends=('ncurses' 'libxext' 'git')
+epoch=1
+# include config.h and any patches you want to have applied here
+source=('git://git.suckless.org/st')
+sha1sums=('SKIP')
+
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+pkgver() {
+       cd "${_pkgname}"
+       git describe --tags |sed 's/-/./g'
+}
+
+prepare() {
+       local file
+       cd "${_pkgname}"
+       sed \
+               -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \
+               -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
+               -e '/int defaultcs/s/= .*/= 1;/' \
+               -i config.def.h
+       sed \
+               -e 's/CPPFLAGS =/CPPFLAGS +=/g' \
+               -e 's/CFLAGS =/CFLAGS +=/g' \
+               -e 's/LDFLAGS =/LDFLAGS +=/g' \
+               -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
+               -i config.mk
+       sed '/@tic/d' -i Makefile
+       for file in "${source[@]}"; do
+               if [[ "$file" == "config.h" ]]; then
+                       # add config.h if present in source array
+                       # Note: this supersedes the above sed to config.def.h
+                       cp "$srcdir/$file" .
+               elif [[ "$file" == *.diff || "$file" == *.patch ]]; then
+                       # add all patches present in source array
+                       patch -Np1 <"$srcdir/$(basename ${file})"
+               fi
+       done
+}
+
+build() {
+       cd "${_pkgname}"
+       make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
+}
+
+package() {
+       cd "${_pkgname}"
+       make PREFIX=/usr DESTDIR="${pkgdir}" install
+       install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+       install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
+}