Hi,
I hope this is the right place to put my question. I’m building this package Sample Hive Project / Sample Hive · GitLab, but it doesn’t provide a make install. So, after it compiles, I got the binary SampleHive file. No further instruction is provided. My question is what do I do next? Do I manually copy it to… to where?
Thanks
Generally, you would copy the binary to /usr/local/bin/
. Then you have in your PATH and you can start it in the terminal by running SampleHive
.
They don’t provide a .desktop
file, so you also have to create on yourself and copy it to the right path: /usr/local/share/applications/
.
With Manjaro (or arch), you could also create a PKGBUILD
file that does the above steps in a script which you could share and maintain in the AUR.
Do you mean something like this?
pkgname=sample-hive
pkgver=testing
pkgrel=1
pkgdesc="A simple, modern audio sample browser/manager for GNU/Linux."
arch=('x86_64')
url="https://gitlab.com/samplehive/sample-hive"
license=('GPL')
groups=('pro-audio')
depends=('wxgtk3' 'wxsvg' 'sqlite' 'taglib' 'yaml-cpp')
makedepends=('git' 'meson' 'gcc')
provides=('SampleHive' 'samplehive.desktop')
source=("https://gitlab.com/samplehive/sample-hive/-/archive/testing/${pkgname}-${pkgver}.tar.gz")
md5sums=(SKIP)
prepare() {
cd "$pkgname-$pkgver"
meson build
}
build() {
cd "$pkgname-$pkgver"
ninja -C build
}
package() {
cd "$pkgname-$pkgver"
cp SampleHive $pkg/usr/local/bin/
cp samplehive.desktop $pkg/usr/local/share/applications/
}
It still doesn’t work.
yes and add package() {
for copy files (bin, .yalm, .desktop, …) in package directory
$srcdir/<results compiled>
→ $pkgdir/
for exemple or other more complete
package() must create the tree structure in $pkgdir
(can use install
command)
makepkg will create an archive of $pkgdir
directory and this archive will be the manjaro package
wiki