diff options
author | Abraham Toriz | 2021-04-06 21:19:32 -0500 |
---|---|---|
committer | Abraham Toriz | 2021-04-06 21:19:32 -0500 |
commit | 52427feec095e90455a94631762a771516c11cec (patch) | |
tree | 9577786e29896364532f016c7c4f650f84aa6fb7 | |
download | aur-52427feec095e90455a94631762a771516c11cec.tar.gz |
first public release 1.3.1
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..805e1bdc3ebc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = pizarra-git + pkgdesc = Simple Gtk drawing application + pkgver = 1.3.1.r1.2e5da7d + pkgrel = 1 + url = https://gitlab.com/categulario/pizarra-gtk + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cargo + makedepends = git + depends = gtk3 + provides = pizarra + conflicts = pizarra + source = pizarra-git::git+https://gitlab.com/categulario/pizarra-gtk + sha256sums = SKIP + +pkgname = pizarra-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..67903a398174 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pizarra-* +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c0199a6bfc5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Abraham Toriz <categulario at gmail dot com> +pkgname=pizarra-git +pkgver=1.3.1.r1.2e5da7d +pkgrel=1 +pkgdesc="Simple Gtk drawing application" +arch=('i686' 'x86_64') +url="https://gitlab.com/categulario/pizarra-gtk" +license=('GPL3') +depends=('gtk3') +makedepends=('cargo' 'git') +provides=('pizarra') +conflicts=('pizarra') +source=("pizarra-git::git+https://gitlab.com/categulario/pizarra-gtk") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//g')" +} + +build() { + cd "$pkgname" + cargo build --release --locked +} + +package() { + cd "$pkgname" + install -Dm755 target/release/pizarra "$pkgdir"/usr/bin/pizarra + install -Dm644 res/pizarra.desktop "$pkgdir"/usr/share/applications/pizarra.desktop + install -Dm644 res/icons/scalable/apps/tk.categulario.pizarra.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/pizarra.svg +} |