Skip to content

Instantly share code, notes, and snippets.

@daurnimator
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daurnimator/75892ab76f1763435870 to your computer and use it in GitHub Desktop.
Save daurnimator/75892ab76f1763435870 to your computer and use it in GitHub Desktop.
PKGBUILD for lua-systemd. Generated with https://gist.github.com/daurnimator/11148106 then hand edited.
pkgname='lua-systemd'
pkgver='scm_0'
pkgrel='0'
pkgdesc='Lua bindings to systemd'
arch=('any')
url='https://github.com/daurnimator/lua-systemd'
license=('MIT')
depends=('luarocks' 'lua')
source=('systemd-scm-0.rockspec' 'git://github.com/daurnimator/lua-systemd')
md5sums=('SKIP' 'SKIP')
install='rock.install'
build() {
cd 'lua-systemd';
luarocks make --pack-binary-rock "${srcdir}"/'systemd-scm-0.rockspec';
}
package() {
cd 'lua-systemd';
luarocks --to="${pkgdir}/usr" install --deps-mode=none --keep 'systemd-scm-0'.*.rock
rm -- "${pkgdir}/usr/lib/luarocks/rocks-5.2/manifest"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
post_install() {
luarocks-admin make_manifest --local-tree
}
post_remove() {
luarocks-admin make_manifest --local-tree
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment