Created
March 11, 2016 23:18
-
-
Save ryanmjacobs/a97a564e1085487ad553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Jakub Luzny <[email protected]> | |
# Maintainer: SanskritFritz (gmail) | |
pkgname=sl-git | |
_gitname=sl | |
pkgver=5.02.r0.g0fd8d6f | |
pkgrel=1 | |
pkgdesc='Steam Locomotive runs across your terminal when you type "sl" as you meant to type "ls"' | |
arch=('i686' 'x86_64' 'arm') | |
url="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html" | |
license=('free') | |
depends=('ncurses') | |
makedepends=('git') | |
provides=('sl') | |
conflicts=('sl') | |
source=("git://github.com/ryanmjacobs/sl.git") | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$_gitname" | |
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$_gitname" | |
cc $CFLAGS -o sl sl.c -lcurses | |
gzip -9 -f sl.1 | |
} | |
package() { | |
cd "$_gitname" | |
install -Dm 775 sl "$pkgdir/usr/bin/sl" | |
install -Dm 644 sl.1.gz "$pkgdir/usr/share/man/man1/sl.1.gz" | |
} | |
#category: games | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment