~earboxer/createaport

updated fork of ~martijnbraam/createaport
automake: move aclocal, autoconf, automake commands into prepare
python: start to modernize
License: Include the license file in the doc subpackage if the license requires it

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~earboxer/createaport
read/write
git@git.sr.ht:~earboxer/createaport

You can also use your local clone with git send-email.

#Create Aport

A command line utility that tries to guess a complete APKBUILD file for a repository URL.

#Example:

$ createaport https://gitlab.com/mobian1/devices/eg25-manager
pkgname=eg25-manager
pkgver=0.3.0
pkgrel=0
pkgdesc="Manager daemon for the Quectel EG25 mobile broadband modem"
url="https://gitlab.com/mobian1/devices/eg25-manager"
arch="all"
license="GPL-3.0"
source="https://gitlab.com/mobian1/devices/eg25-manager/-/archive/0.3.0/eg25-manager-0.3.0.tar.gz"
makedepends="meson libusb-dev glib-dev modemmanager-dev libgudev-dev libgpiod-dev"

build(){
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check(){
	meson test --no-rebuild -C output
}

package(){
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
$ createaport https://github.com/f1xpl/openauto
# WARNING: Could not auto-detect the license
pkgname=openauto
pkgver=v1.1.1
pkgrel=0
pkgdesc="AndroidAuto headunit emulator"
url="https://github.com/f1xpl/openauto"
arch="all"
license=""
source="https://github.com/f1xpl/openauto/archive/v1.1.1/openauto-v1.1.1.tar.gz"
makedepends="cmake"

build(){
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

check(){
	cd build && ctest
}

package(){
	DESTDIR="$pkgdir" cmake --install build
}