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
}

9
tools/DEBIAN/control Normal file
View file

@ -0,0 +1,9 @@
Package: er2cord
Version: 0.1.0
Section: development
Priority: optional
Architecture: amd64
Maintainer: Er2 <er2@dismail.de>
Depends: libgtk-4-1 (>= 4.1.0)
Homepage: https://gitdab.com/er2/er2cord
Description: WIP GTK4 chat.

4
tools/DEBIAN/postinst Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
chmod +x /usr/bin/er2cord
glib-compile-schemas /usr/share/glib-2.0/schemas
exit 0

44
tools/PKGBUILD Normal file
View file

@ -0,0 +1,44 @@
# Maintainer: Er2 <er2@dismail.de>
pkgname=er2cord
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc="WIP GTK4 Chat"
arch=('any')
url="https://gitdab.com/er2/er2cord"
license=('Zlib')
groups=()
depends=('gtk4>=4.0')
makedepends=('vala>=0.54' 'meson>=0.60')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=('er2cord.install')
changelog=
source=("$pkgname.tar.gz")
noextract=()
md5sums=()
validpgpkeys=()
prepare() {
cd "$pkgname"
}
build() {
cd "$pkgname"
make
}
check() {
# no checks ;)
}
package() {
cd "$pkgname"
make install
}

9
tools/er2cord.install Normal file
View file

@ -0,0 +1,9 @@
# Go to PKGBUILD
post_install() {
glib-compile-schemas /usr/share/glib-2.0/schemas
}
post_remove() {
glib-compile-schemas /usr/share/glib-2.0/schemas
}

View file

@ -0,0 +1 @@
/home/er2/proj/erc/tools/er2cord.post-install

View file

@ -0,0 +1,5 @@
#!/bin/sh
glib-compile-schemas /usr/share/glib-2.0/schemas
exit 0