diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..29fe86c6e44e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = erutaso + pkgdesc = Eru Chitanda runs across your terminal when you type "erutaso" as you meant to type "ls". + pkgver = r27.bd3a103 + pkgrel = 1 + url = https://github.com/sgymtic/sl + arch = i686 + arch = x86_64 + license = custom + depends = ncurses + source = git+https://github.com/sgymtic/sl.git + md5sums = SKIP + +pkgname = erutaso + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6f75d0409eec --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Gomasy <nyan@gomasy.jp> + +_pkgname=sl +pkgname=erutaso +pkgver=r27.bd3a103 +pkgrel=1 +pkgdesc='Eru Chitanda runs across your terminal when you type "erutaso" as you meant to type "ls".' +arch=('i686' 'x86_64') +url="https://github.com/sgymtic/sl" +license=('custom') +depends=('ncurses') +source=("git+$url.git") +md5sums=('SKIP') + +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $_pkgname + + cc $CFLAGS -o erutaso sl.c -lcurses + gzip -9 -f erutaso.1 +} + +package() { + cd $_pkgname + + install -Dm 775 erutaso "$pkgdir/usr/bin/erutaso" + install -Dm 644 erutaso.1.gz "$pkgdir/usr/share/man/man1/erutaso.1.gz" + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |