summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12019-11-10 23:27:59 +0800
committerChocobo12019-11-10 23:32:39 +0800
commitfbfbdf4f9f6976a97224cf4021bc03ef116949c8 (patch)
treeb710a4a3974112acbdc8cde92da13a1499a270fa
downloadaur-fbfbdf4f9f6976a97224cf4021bc03ef116949c8.tar.gz
newpkg: qrencode-git 4.0.2.r43.g13b159f-1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD46
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c30ed8b9a51
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = qrencode-git
+ pkgdesc = A fast and compact QR Code encoding library
+ pkgver = 4.0.2.r43.g13b159f
+ pkgrel = 1
+ url = https://fukuchi.org/works/qrencode/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = sdl
+ depends = glibc
+ depends = libpng
+ provides = qrencode
+ conflicts = qrencode
+ source = git+https://github.com/fukuchi/libqrencode.git
+ sha256sums = SKIP
+
+pkgname = qrencode-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86e33ba1bc8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=qrencode-git
+pkgver=4.0.2.r43.g13b159f
+pkgrel=1
+pkgdesc="A fast and compact QR Code encoding library"
+arch=('i686' 'x86_64')
+url="https://fukuchi.org/works/qrencode/"
+license=('LGPL')
+depends=('glibc' 'libpng')
+makedepends=('git' 'sdl')
+provides=('qrencode')
+conflicts=('qrencode')
+source=("git+https://github.com/fukuchi/libqrencode.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libqrencode"
+
+ _tag=$(git tag -l --sort -v:refname | sed -n '1,1{s/v//p}')
+ _rev=$(git rev-list --count v$_tag..HEAD)
+ _hash=$(git rev-parse --short HEAD)
+ printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
+}
+
+build() {
+ cd "libqrencode"
+
+ ./autogen.sh
+ ./configure \
+ --prefix="/usr"
+ make
+}
+
+check() {
+ cd "libqrencode"
+
+ #make check
+}
+
+package() {
+ cd "libqrencode"
+
+ make DESTDIR="$pkgdir" install
+}