Last active
August 29, 2015 14:05
-
-
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.
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
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" | |
} |
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
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