may be working packaging for arch and alpine

This commit is contained in:
Er2 2021-11-09 21:24:13 +03:00
parent caad031aa1
commit 897a36e8e0
12 changed files with 120 additions and 34 deletions

34
tools/APKBUILD Normal file
View file

@ -0,0 +1,34 @@
# Maintainer: Er2 <er2@dismail.de>
pkgname=er2cord
pkgver=0.1.0
pkgrel=0
pkgdesc="WIP GTK4 Chat"
url="https://gitdab.com/er2/er2cord"
arch="all"
options="!check"
license="Zlib"
makedepends="gtk4.0-dev vala meson"
depends="gtk4.0"
install="$pkgname.post-install $pkgname.post-deinstall"
source="$pkgname.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname"
prepare() {
default_prepare
}
build() {
make
}
package() {
DESTDIR="$pkgdir" make install
}
doc() {
pkgdesc="$pkgdesc (docs)"
DESTDIR="$subpkgdir" make docs
}