diff options
author | otreblan | 2020-06-14 19:01:46 -0500 |
---|---|---|
committer | otreblan | 2020-06-14 19:01:46 -0500 |
commit | e26761bb96a66cccd3778d95d13b04383804b2e1 (patch) | |
tree | 6e4e7ea50a03f0cf7b8cbaf63320315bdc8863e5 | |
download | aur-e26761bb96a66cccd3778d95d13b04383804b2e1.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b0d3b0dfc0f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = replxx + pkgdesc = A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed. + pkgver = 0.0.2 + pkgrel = 1 + url = https://github.com/AmokHuginnsson/replxx + arch = x86_64 + license = BSD + makedepends = cmake + depends = gcc-libs + provides = libreplxx.so + source = replxx-0.0.2.tar.gz::https://github.com/AmokHuginnsson/replxx/archive/release-0.0.2.tar.gz + sha256sums = 6f5c58b4cd23550d5a589d134727296438793cb818ce7158fbd5e1b0db1548ba + +pkgname = replxx + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..286366e96c72 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Otreblan <otreblain@gmail.com> + +pkgname=replxx +pkgver=0.0.2 +pkgrel=1 +epoch= +pkgdesc="A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed." +arch=('x86_64') +url="https://github.com/AmokHuginnsson/replxx" +license=('BSD') +groups=() +depends=('gcc-libs') +makedepends=('cmake') +checkdepends=() +optdepends=() +provides=("lib$pkgname.so") +conflicts=() +source=("$pkgname-$pkgver.tar.gz::$url/archive/release-$pkgver.tar.gz") +sha256sums=('6f5c58b4cd23550d5a589d134727296438793cb818ce7158fbd5e1b0db1548ba') + +prepare() { + mv -f "$pkgname-release-$pkgver" "$pkgname-$pkgver" + + cd "$pkgname-$pkgver" + mkdir -p "build" + + sed -i 's/VERSION 3.0/VERSION 3.13.0/' CMakeLists.txt + sed -i 's/\(set_target_properties(.*\))/\1 VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})/' CMakeLists.txt +} + +build() { + cd "$pkgname-$pkgver/build" + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_UNITY_BUILD=ON \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ + .. + make +} + +package() { + cd "$pkgname-$pkgver/build" + make DESTDIR="$pkgdir/" install + + install -Dm644 ../LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +} |