Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Archlinux package installation #93

Open
0pcom opened this issue Aug 14, 2020 · 1 comment
Open

Feature: Archlinux package installation #93

0pcom opened this issue Aug 14, 2020 · 1 comment

Comments

@0pcom
Copy link

0pcom commented Aug 14, 2020

Daptin looks promising, so I've devised a PKGBUILD of the latest binary release for my own testing purposes.

If you would like to submit this to the Arch User Repos, refer to the archlinux wiki on these topics and any additional guidance from aur.archlinux.org. If you do not wish to maintain this in the arch user repos, and if I end up using this in a deployment, I would request your approval for my submitting this as a package to the AUR

pkgname=daptin-bin
_pkgname=daptin
_githuborg=$_pkgname
pkgdesc="Backend As A Service - GraphQL/JSON-API Headless CM"
_pkgoption1="gui-standalone-linux-x64"
_pkgoption2="gui-standalone-linux-arm"
pkgver='0.9.1'
_pkgpath="github.com/${_githuborg}/${_pkgname}"
pkgrel=1
arch=('any')
url="https://${_pkgpath}"
license=(GPL)
provides=(daptin)
depends=(mysql)
#https://github.com/daptin/daptin/releases/download/v0.9.1/daptin-linux-amd64
_x86_64bin=${_pkgname}-linux-amd64
source_x86_64=("${url}/releases/download/v${pkgver}/${_pkgname}-linux-amd64")
sha256sums_x86_64=('4ddb73c9da2daf15901c99c4bf012acbc5d2533acef8a65a54fc62fedab104aa')
#https://github.com/daptin/daptin/releases/download/v0.9.1/daptin-linux-arm-7
_arm7bin=${_pkgname}-linux-arm-7
source_aarch64=("${url}/releases/download/v${pkgver}/${_arm7bin}")
sha256sums_aarch64=('39ae02a38f66560fc0eb9ce0ca08c060c00d2a465f56451af3a018bd3e78f104')


package() {
	install -Dm755 ${srcdir}/* ${pkgdir}/usr/bin/${_pkgname}
}

(I suggest you compress your releases and call all the binaries daptin)
If you are not familiar, packages on arch are built by running makepkg in a directory containing a PKGBUILD

I've installed this and am running it now, it looks good.

I just want to double check with you on the dependancies. SQL is not a dependancy? Are there any runtime dependancies?

Thanks

@artpar
Copy link
Collaborator

artpar commented Aug 15, 2020

Hey @0pcom,

This looks great, I have always wanted to build the installation packages for all OSes I can. I would love if you can maintain it, and would like to see if we can automate this using github actions if that's possible ? Currently all the release binaries are being built on github actions (though the builds happen on 4 other public builders as well).

There are no dependencies, not even MySQL, for the most basic usage it can run on SQLite which is also packed into the binary.

We can generate a static build for installation packages.

Really appreciate you doing this.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants