diff options
author | Rob <rjl6789@users.noreply.github.com> | 2019-04-22 19:55:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 19:55:52 +0100 |
commit | b919e7dde997d21196a9246adda7c8397a79f658 (patch) | |
tree | 40191bf403cb02934d56e7e3a5957bb86de676ae /PKGBUILD | |
parent | d6863bfeded8c307a4476ce4edeff05103015f4d (diff) | |
parent | 30a6a001fe396841a418a7e3e38a4d5bb27ca356 (diff) |
Merge pull request #1 from LukeSmithxyz/master
update april 2019
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..959a2e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: + +pkgname=st-luke-git +_pkgname=st +_pkgver=0.8.1 +pkgver=0.8.1.r1046.1cd0b79 +pkgrel=1 +pkgdesc="Luke's simple (suckless) terminal with vim-bindings, transparency, xresources, etc. " +url='https://github.com/LukeSmithxyz/st' +arch=('i686' 'x86_64') +license=('MIT') +options=('zipman') +depends=('libxft') +makedepends=('ncurses' 'libxext' 'git') +optdepends=('dmenu: feed urls to dmenu') +source=('git://github.com/LukeSmithxyz/st') +sha1sums=('SKIP') + +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +pkgver() { + cd "${_pkgname}" + printf "${_pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd $srcdir/${_pkgname} + # skip terminfo which conflicts with nsurses + sed -i '/tic /d' Makefile +} + +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.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" +} |