Skip to content

Commit

Permalink
* add ArchLinux PKGBUILDs
Browse files Browse the repository at this point in the history
  • Loading branch information
brainpower committed Jun 1, 2014
1 parent aff2e71 commit 836bd69
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cpp/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: oi_wtf aka. brainpower <brainpower at gulli dot com>
pkgname=checkarg-cpp
pkgver=0.1.0
pkgrel=1
pkgdesc="The CheckArg commandline parser"
arch=('i686' 'x86_64')
url="https://github.com/brainpower/checkarg"
license=('GPL')
depends=()
makedepends=()

source=("checkarg-${pkgver}.tar.gz::https://github.com/brainpower/checkarg/archive/${pkgver}.tar.gz")
sha256sums=('58715117e6299dcbb98a43bbbe5e5a0f93f4570bb8bd10f0ba568d69bbb97b4a')

#options=(!ccache)

build() {
cd "$srcdir/checkarg-${pkgver}/cpp"

make
}

package() {
cd "$srcdir/checkarg-${pkgver}/cpp"

make DESTDIR="$pkgdir/" install

}

# vim:set ts=2 sw=2 et:
37 changes: 37 additions & 0 deletions cpp/arch/PKGBUILD-git
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: oi_wtf aka. brainpower <brainpower at gulli dot com>
pkgname=checkarg-cpp-git
pkgver=0.1.0
pkgrel=1
pkgdesc="The CheckArg commandline parser"
arch=('i686' 'x86_64')
url="https://github.com/brainpower/checkarg"
license=('GPL')
depends=('sfml-git' 'sfgui-git')
makedepends=('cmake' 'git')
provides=('checkarg-cpp')
conflicts=('checkarg-cpp')
replaces=('checkarg-cpp')

source=("git+https://github.com/brainpower/checkarg.git")
md5sums=('SKIP')
#options=(!ccache)

pkgver() {
cd "${srcdir}/checkarg"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/checkarg/cpp"

make
}

package() {
cd "${srcdir}/checkarg/cpp"

make DESTDIR="$pkgdir/" install

}

# vim:set ts=2 sw=2 et:

0 comments on commit 836bd69

Please sign in to comment.