diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9fdfd3345706 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = libcini-git + pkgdesc = A simple and easy-to-use C initiation library + pkgver = 2.1.1 + pkgrel = 1 + url = https://github.com/wegank/libcini + arch = x86_64 + license = GPL + makedepends = git + makedepends = cmake + depends = sdl2 + depends = sdl2_ttf + provides = libcini + conflicts = libcini + source = libcini::git+https://github.com/wegank/libcini.git + md5sums = SKIP + +pkgname = libcini-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79031ab3a0f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Pablo Hardouin <pablohardouin02 at gmail dot com> +_pkgname=libcini +pkgname="${_pkgname}-git" +pkgver=2.1.1 +pkgrel=1 +pkgdesc="A simple and easy-to-use C initiation library" +arch=("x86_64") +url="https://github.com/wegank/libcini" +license=('GPL') +groups=() +depends=('sdl2' 'sdl2_ttf') +makedepends=('git' 'cmake') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("${_pkgname}::git+https://github.com/wegank/libcini.git") +md5sums=('SKIP') + +build() { + cd "${srcdir}/${_pkgname}" + mkdir build + cd build + cmake .. + cpack .. +} + +package() { + cd "${srcdir}/${_pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 -t "${pkgdir}/usr/include/" include/* + install -Dm755 build/src/libcini.so "${pkgdir}/usr/lib/libcini.so" +} |